Properties Methods Events Direct Link
TaskRunner
  TaskMgr

Class CQ.Ext.TaskMgr

Package:CQ.Ext
Class:TaskMgr
Extends:CQ.Ext.util.TaskRunner
Clientlib:cq.widgets
A static CQ.Ext.util.TaskRunner instance that can be used to start and stop arbitrary tasks. See CQ.Ext.util.TaskRunner for supported methods and task config properties.
// 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.



This class is a singleton and cannot be created directly.

Public Properties

This class has no public properties.

Public Methods

Method Defined By

Public Events

This class has no public events.