X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/d41dc04ad17d1d9125fb2cf72db2b4782dbe3a8c..e9397f91ede62d446aed37d23256e8938fc4c335:/docs/output/Ext.util.TaskRunner.html?ds=inline diff --git a/docs/output/Ext.util.TaskRunner.html b/docs/output/Ext.util.TaskRunner.html index e014be42..0d873761 100644 --- a/docs/output/Ext.util.TaskRunner.html +++ b/docs/output/Ext.util.TaskRunner.html @@ -1,139 +1,49 @@ -
Package: | Ext.util |
Defined In: | TaskMgr.js |
Class: | TaskRunner |
Extends: | Object |
Package: | Ext.util |
Defined In: | TaskMgr.js |
Class: | TaskRunner |
Subclasses: | TaskMgr |
Extends: | Object |
// Start a simple clock task that updates a div once per second
+var updateClock = function(){
+ Ext.fly('clock').update(new Date().format('g:i:s A'));
+}
var task = {
- run: function(){
- Ext.fly('clock').update(new Date().format('g:i:s A'));
- },
+ run: updateClock,
interval: 1000 //1 second
}
var runner = new Ext.util.TaskRunner();
-runner.start(task);
Method | -Defined By | -||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- |
-
- TaskRunner( [Number interval ] )
-
-
-
-
-
- Parameters:
-
-
|
- TaskRunner | -|||||||||||||||
- |
-
- start( [Object task ] ) : Object
- Starts a new task.
-
- Starts a new task. Returns:
- Parameters:
-
\ No newline at end of file
+
+
Before each invocation, Ext injects the property
| TaskRunner | |||||||||||||||
stop( Object task )
+ :
+ ObjectStops 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 |