Skip to main content

pagination

To enable the pagination plugin

PaginationConfig type has the following properties:

NameDescriptionType
limit optionalrows per pagenumber
page optionalinitial pagenumber
summary optionalto show/hide the pagination summaryboolean
nextButton optionalto show/hide the next buttonboolean
prevButton optionalto show/hide the previous buttonboolean
buttonsCount optionalnumber of buttons to displaynumber
resetPageOnUpdate optionalto reset the pagination when table is updatedboolean
server optionalto enable server-side integrationServerConfig
new Grid({
data: [
['John', 'john@example.com', '(353) 01 222 3333'],
['Mark', 'mark@gmail.com', '(01) 22 888 4444'],
['Eoin', 'eo3n@yahoo.com', '(05) 10 878 5554'],
['Nisen', 'nis900@gmail.com', '313 333 1923']
],
pagination: {
limit: 2,
summary: false
}
});