A angular.js module for creating client side pagination
- Include the app.js file in the html.
- In your module add the dependency as
page-table. - Create a tag
<page-table></page-table>which can have the following attributes:- list: mandatory: Provide your array of dicts to this attributeheaders: mandatory: List of headers(same as keys from the list) in the order in which you want to display the table columns.selfheaders: optional: List of headers(can be different from the list), if provided, will be displayed inplace of the headers listsearch: optional: A scope variable which will act as a search text in theng-filter.sno: optional: If marked as true, then the table will contain the S. No. column.page-range: optional: List of numbers, each will be added to a dropdown for user to select the number of items to visible in one page.click-cb: optional: If provided, will call the provided function, with first parameter as the clicked object(from the list provided) and second one as the key which was clicked(from the headers list).