Skip to content

sgsaravana/riot-pagination

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Simple pagination-ui plugin with RiotJS

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published