delay
delays the code execution for the specified number of milliseconds
number delay(function code, [object owner,array params,number delay] );
code | function | the code you want to delay |
owner | object | an object that the this keyword refers to |
params | array | an array of callback parameters |
delay | number | the delay in milisecods. By default, 1 millisecond |
number | the timeout id (can be used by the clearTimeout() method ) |
Example
webix.delay(function(){
do_something();
});
//or
webix.delay(function(a, b){
//a == 1
//b == "abc"
//this == dtable
do_something();
}, dtable, [1, "abc"], 100);
Back to top