2.0.0 • Published 5 years ago

pagingdata v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

pagingdata Build Status

npm install pagingdata

/**
 * pagingData(pageLength, length, recordsTotal, currentPage)
 * @param {Int} pageLength - Number of rows to display on a single page
 * @param {Int} length - Display length (number of records)
 * @param {Int} recordsTotal - Full data set length
 * @param {Int} currentPage - Current page index (zero based - i.e. the first page is 0)
 * @return {Array}
 */
// [0,1,2,3,4]
pagingData(10,5,70,0);