Skip to content
Simple pagination-ui plugin with RiotJS
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CODE_OF_CONDUCT.md
LICENSE
README.md
riot-pagination.tag

README.md

riot-pagination

Simple pagination-ui plugin with RiotJS

Usage

<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-page

Current active page (default: 1)

per-page

No of items per page (default: 10)

page-changed

function to be executed when the page is changed

page-count

No of total pages

record-count

Total number of records

max-buttons

Maximum number of page buttons to show (default: 8)

show-first

Show the 'First' page button (default: true)

show-last

Show the 'Last' page button (default: true)

show-next

Show 'Next' button (default: true)

show-prev

Show 'Previous' button (default: true)

You can’t perform that action at this time.