X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6a7e4474cba9d8be4b2ec445e10f1691f7277c50..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/docs/api/Ext.TaskManager.html diff --git a/docs/api/Ext.TaskManager.html b/docs/api/Ext.TaskManager.html new file mode 100644 index 00000000..81a7a17e --- /dev/null +++ b/docs/api/Ext.TaskManager.html @@ -0,0 +1,95 @@ +
Hierarchy
Ext.util.TaskRunnerExt.TaskManager
A static Ext.util.TaskRunner instance that can be used to start and stop arbitrary tasks. See +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(){
+ Ext.fly('clock').update(new Date().format('g:i:s A'));
+ },
+ interval: 1000 //1 second
+}
+Ext.TaskManager.start(task);
+
+
+
+See the start method for details about how to configure a task object.
+ +
(optional) The minimum precision in milliseconds supported by this TaskRunner instance +(defaults to 10)
+Starts a new task.
+Starts a new task.
+A config object that supports the following properties:
run
: FunctionThe function to execute each time the task is invoked. The
+function will be called at each interval and passed the args
argument if specified, and the
+current invocation count if not.
If a particular scope (this
reference) is required, be sure to specify it using the scope
argument.
Return false
from this function to terminate the task.
interval
: Numberargs
: Arrayrun
. If not specified, the current invocation count is passed.scope
: Objectrun
function. Defaults to the task config object.duration
: Numberrepeat
: NumberBefore each invocation, Ext injects the property taskRunCount
into the task object so
+that calculations based on the repeat count can be performed.
The task
+Stops an existing running task.
+Stops an existing running task.
+The task to stop
+The task
+