setPageSize( )


Sets the dataset's page size.

The setPageSize() function returns a Promise that is resolved when:

  • The current item is saved in the collection (if necessary).
  • The dataset's page size is reset.
  • The dataset is refreshed, and any connected elements have been updated.

Because setting the page size refreshes the dataset, the dataset's current item is reset to the first item in the dataset.

Calling setPageSize() on a write-only dataset causes an error.

Note:
When using a read-write dataset and linked input elements, calling any of the following functions will save any changes made in the linked input elements.

Method Declaration
Copy
Method Parameters
pageSizenumberRequired

The new page size.

Did this help?