Skip to content

Drama123543/pagingdata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published