A material design implementation of a data table. Easy API integration.
Differential:
- Easy to use
- Customizable style
- API integration
$ git clone https://github.com/discovery-tecnologia/dsc-polymer-pagination.git
$ cd dsc-polymer-pagination
$ npm install
$ npm install -g polymer-cli
$ polymer serve
Open browser: http://localhost:8080/components/dsc-polymer-pagination/demo/
Install with:
$ bower i dsc-polymer-pagination --save
Example usage:
<dsc-polymer-pagination
page="[[page]]"
pages="[[pages]]"
limit="[[limit]]"
total="[[total]]"
loading="[[loading]]"
on-pagination-change="_handlerChange">
</dsc-polymer-pagination>
Property | Description | Default |
---|---|---|
loading | Block all buttons. | null |
limit | Quantity per page. | null |
pages | Total number of pages. | null |
page | Current page number. | null |
total | Total items in all pages | null |
Event | Description |
---|---|
pagination-change | Event of one or more of the following states: page and limit. |
Check sintax and execute selenium tests.
$ npm test
- internationalization