The pagination element is not yet available in editor X. However, you might be able to create your own with code.
You might be able to add buttons for the pagination menu and then set the number of items you want to display with the dataset.setPageSize API. Read more about it here .
Each button will need an onClick event and within the onClick you can use the nextPage() function to move onto the next page of items.
There may be a few other APIs that may be useful to you here .
To add pagination to your dataset, add 2 button elements to your page and name them “Next page” and “Previous page”.
Then, copy this code into the code editor of your page ( please note that the ID of your dataset and function names for the click events may be different than what I have used - use the “Properties & Events” tab to find yours):
$w.onReady(function () {
//sets the dataset's page size
$w('#dataset1').setPageSize(4); //change this value to display more items
});
//moves to the next page of data
export function button1_click(event) {
$w('#dataset1').nextPage();
}
//moves to the previous page of data
export function button2_click(event) {
$w('#dataset1').previousPage();
}
There is still no pagination bar in Editor X? Geez!!! The more things I find out are missing. It’s like getting a Tony Stark mansion with no doors, windows, or a driveway… but there is a helicopter pad!