Blaze UI Pagination Events
Blaze UI is an open-source lightweight UI toolkit that provides great tools for building customized and scalable applications. It can work with any framework that exists. It can adapt to any ecosystem. All designs or CSS are mobile-first and hence responsive.
Blaze UI Pagination allows implementing the division of a single page into multiple pages and displaying them efficiently. We can separate the content into different pages and then select any one of them.
Blaze UI Pagination attributes:
- pages: It represents the total number of available pages. It accepts the number type value.
- page: It represents the current page. It accepts the number type value.
Blaze UI Pagination Method:
- currentPage(): It returns the current page number.
Blaze UI Pagination Event:
- page(event): This event is triggered when the page changes and returns the current page.
Syntax: Create pagination as follows.
<blaze-pagination id="gfgpage" pages="8" page="1"> </blaze-pagination>
Example 1: In the following example, an alert is shown whenever the page change occurs.
Example 2: In the following example, we have two paginations with the page event.