TaskRunnerTaskMgr
| Package: | CQ.Ext |
| Class: | TaskMgr |
| Extends: | CQ.Ext.util.TaskRunner |
| Clientlib: | cq.widgets |
// Start a simple clock task that updates a div once per second
var task = {
run: function(){
CQ.Ext.fly('clock').update(new Date().format('g:i:s A'));
},
interval: 1000 //1 second
}
CQ.Ext.TaskMgr.start(task);
See the start method for details about how to configure a task object.
| Method | Defined By | |
|---|---|---|
start( [Object task] ) : Object Starts a new task.
Starts a new task.
Parameters:
|
TaskRunner | |
stop( Object task ) : Object Stops an existing running task.
Stops an existing running task.
Parameters:
|
TaskRunner | |
|
stopAll() : void Stops all tasks that are currently running.
Stops all tasks that are currently running.
Parameters:
|
TaskRunner | |