setPageSize( )


Sets the dataset's page size.

The setPageSize() function returns a Promise that's 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:

Method Declaration
Copy
Method Parameters
pageSizenumberRequired

The new page size.

Did this help?