pagination
To enable the pagination plugin
optional
- Type:
boolean
orPaginationConfig
- Example: Pagination and Server-side pagination
PaginationConfig
type has the following properties:
Name | Description | Type |
---|---|---|
limit optional | rows per page | number |
page optional | initial page | number |
summary optional | to show/hide the pagination summary | boolean |
nextButton optional | to show/hide the next button | boolean |
prevButton optional | to show/hide the previous button | boolean |
buttonsCount optional | number of buttons to display | number |
resetPageOnUpdate optional | to reset the pagination when table is updated | boolean |
server optional | to enable server-side integration | ServerConfig |
new Grid({
data: [
['John', '[email protected]', '(353) 01 222 3333'],
['Mark', '[email protected]', '(01) 22 888 4444'],
['Eoin', '[email protected]', '(05) 10 878 5554'],
['Nisen', '[email protected]', '313 333 1923']
],
pagination: {
limit: 2,
summary: false
}
});