Simple pagination-ui plugin with RiotJS
<riot-pagination
show = "{ participants.length }"
current-page = "{ currentPage }"
per-page = "{ perPage }"
page-changed = "{ switchPage }"
page-count = "{ pageCount }"
record-count = "{ recordCount }"
max-buttons = "8"
show-first = "true"
show-last = "true"
show-next = "true"
show-prev = "true">
</riot-pagination>
Current active page (default: 1)
No of items per page (default: 10)
function to be executed when the page is changed
No of total pages
Total number of records
Maximum number of page buttons to show (default: 8)
Show the 'First' page button (default: true)
Show the 'Last' page button (default: true)
Show 'Next' button (default: true)
Show 'Previous' button (default: true)