See the pagination-table for more information.
Install the component using Bower:
$ bower install pagination-table --save
Or download as ZIP.
-
Import Web Components' polyfill:
<script src="bower_components/webcomponentsjs/webcomponents.min.js"></script>
-
Import Custom Element:
<link rel="import" href="bower_components/pagination-table/pagination-table.html">
-
Start using it!
<pagination-table items="{{items}}"></pagination-table>
Attribute | Type | Default | Description |
---|---|---|---|
items |
Array | undefined |
Items for component. JSON Objects. |
page-size |
Number | 10 |
Number of items to display on page. |
layout |
String | pagination-item |
The tag to use to represent the items. |
Method | Parameters | Returns | Description |
---|---|---|---|
previousPage() |
None. | Nothing. | Displays the previous page. |
nextPage() |
None. | Nothing. | Displays the next page. |
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request