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 pageonReady
event fires. - The
onReady()
function has the same functionality as theonReadyAsync()
function. They differ in thatonReady()
is callback-based, whereasonReadyAsync()
is promise-based.
Method Declaration
Copy
Method Parameters
handlerfunctionRequired
handler(): void The ready handler.
Was this helpful?
Yes
No