Skip to content

Polymer pagination element. Works with remote data source like Iron Ajax to do server-side pagination.

Notifications You must be signed in to change notification settings

hankphung/paper-pagination

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


   /\˜˜/   /\˜˜/\   
  /__\/   /__\/__\    
 /\  /   /\  /\  /\ 
/__\/   /__\/  \/__\  Polymer
\  /\  /\  /   /\  /
 \/__\/__\/   /__\/   
  \  /\  /   /\  /  
   \/__\/   /__\/   

paper-pagination

Polymer pagination element. Input record count, pagesize to get list of page chooser. Demo screenshot-localhost 8080 2016-09-16 08-39-04

Setup

Clone this repo or install by bower. bower install paper-pagination

Document

Properties

Properties Type Description
pageSize Number Number of items per page
total Number Total items count
rangeSize Number Number of visible page item on large collection.
currentPage Number Current selected page
hidden Number hidden if pageSize == 1
hiddenFirstPageButton Boolean (readonly)
hiddenLastPageButton Boolean (readonly)
hiddenNextPageButton Boolean (readonly)
hiddenPreviousPageButton Boolean (readonly)

Sample

  <paper-pagination page-size="5" total="21" current-page="{{currentPage}}"></paper-pagination>
  <span> page:{{currentPage}></span>

To observe the change on currentPage, use observer

  observer:['_currentPageChange(currentPage)'],
  _currentPageChange:function(c){
    console.log(c)
  },

About

Polymer pagination element. Works with remote data source like Iron Ajax to do server-side pagination.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages