Loads the next page of data in addition to the current data.
The loadMore()
function returns a Promise that is resolved
when:
Loading more data into a dataset adds more items to any connected repeaters. Elements that have their own settings for how many items are shown at once, such as tables and galleries, are not affected.
Loading more data into a dataset does not:
Note:
A dataset needs to load its data before you call its loadMore()
function.
Usually a dataset finishes loading a short time after the page it is on finishes
loading. So if you call loadMore()
inside the page’s onReady()
event handler, the dataset might not be ready yet.
To call loadMore()
as soon as possible after a page loads, use the dataset's
onReady()
function inside the page’s onReady()
event handler to ensure that both the page and the dataset have finished loading.