onReady( )


Adds an event handler that runs when the dataset is ready.

The onReady() function allows you to optionally perform actions right after the dataset has loaded its data from the collection and updated all connected page elements with their corresponding values.

Notes:

  • The dataset onReady event only fires after the page onReady event fires.
  • The onReady() function has the same functionality as the onReadyAsync() function. They differ in that onReady() is callback-based, whereas onReadyAsync() is promise-based.
Method Declaration
Copy
Method Parameters
handlerfunctionRequired

handler(): void The ready handler.

Was this helpful?
Yes
No