Pagination Component
The UI pagination component is a plugin for the listing component. Responsible for rendering pagination UI and applying pagination criteria to collection.
You can configure pagination in several ways:
- Globally: using any module’s
view/*/ui_component/etc/definition.xml
file. All settings declared in this file are applied to all component’s instances. - Locally: using concrete component instance configuration, such as
<Magento_Cms_module_dir>/view/adminhtml/ui_component/cms_page_listing.xml
To enable pagination for the listing component, the pagination component is declared as a child of the listing component in component instance configuration.
Example:
<Magento_Cms_module_dir>/view/adminhtml/ui_component/cms_page_listing.xml
The configuration of the component can include:
-
storageConfig
- storageConfig is a base component property. Here it is configured to take stored page sizes list from bookmarks sizesConfig
: configuration of the component that defines available page sizes. By default it isMagento_Ui/js/grid/paging/sizes
.minSize
: minimum number of elements on a page, default: 1maxSize
: maximum number of elements on a page, default: 999
selectProvider
: component with selections data.