Created
July 26, 2011 01:37
-
-
Save ghuntley/1105732 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
@class Ext.TaskMgr | |
@extends Ext.util.TaskRunner | |
A static {@link Ext.util.TaskRunner} instance that can be used to start and stop arbitrary tasks. See | |
{@link Ext.util.TaskRunner} for supported methods and task config properties. | |
<pre><code> | |
// 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.TaskMgr.start(task); | |
</code></pre> | |
<p>See the {@link #start} method for details about how to configure a task object.</p> | |
@singleton | |
### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment