Search...
currentPage
Sets or gets the current page.
Description
Setting the currentPage
property updates the visual indicator of the
pagination bar to display the current page. The currentPage
cannot be
set to a value greater than totalPages
.
If the pagination bar is connected to a dataset, setting currentPage
updates the current page of the dataset and updates any relevant
elements connected to that dataset.
Getting the currentPage
property returns the index of the current page.
Note: Page numbers begin with 1.
Type:
numberRead & Write
Related Content:
Was this helpful?
Get a pagination bar's current page
Copy Code
1let currentPage = $w("#myPagination").currentPage; // 4
Set a pagination bar's current page
Copy Code
1$w("#myPagination").currentPage = 4;