pagingdata

2.0.0 • Public • Published

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);

Readme

Keywords

none

Package Sidebar

Install

npm i pagingdata

Weekly Downloads

0

Version

2.0.0

License

MIT

Unpacked Size

7.84 kB

Total Files

6

Last publish

Collaborators

  • ishanyang