Pagination
Introduction
The project has a built-in Pagination Component but in some cases, users might want to provide their own Custom Pagination Component.
Demo
Custom Pagination
When providing a custom pagination component as a customPaginationComponent
, that class will be instantiated instead of the regular SlickPaginationComponent
.
Note Your Custom Pagination must
implements BasePaginationComponent
so that the internal instantiation work as intended.
Custom Pagination Component
Create a Custom Pagination Component that requires the following functions, your class will be instantiated and the init()
will contain all the references to the Services. The render()
will also be called with the grid container DOM element which is important to either prepend or append your Custom Pagination to the grid.
Component
You then need to reference your Custom Pagination class to your grid options.
Last updated