setTimeout
Description
Calls a function or evaluates an expression after a specified number of seconds.
Input / Parameter
timeout
The time before a function is executed, in milliseconds.
Number
0
-
No
persistent
To identify whether this should still be executed outside the current active page.
Boolean
false
true, false
No
extra
The value to be included to the 'callback' as a system value under 'extra'.
Any
-
-
No
Output
N/A
Callback
yesCallback
The function to be executed after the timeout.
Video
Coming Soon.
Example
The user wants to display the infoDialog after 3 seconds.
Step
Call the function
setTimeout
to a button component with eventclick
and enter the duration of the timeout. timeout: 3000Call the function
infoDialog
in the callback of thesetTimeout
function to display a infoDialog after 3 seconds. title: Message content: Done disableTimer: true
Result
When the button is pressed, the infoDialog will appear after 3 seconds.
Links
Last updated