Created
October 13, 2010 09:42
-
-
Save malteo/623753 to your computer and use it in GitHub Desktop.
Allowing Users To Invoke Methods Before A Component Is Rendered in ExtJS
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
/** | |
* Allowing Users To Invoke Methods Before A Component Is Rendered | |
* | |
* @see http://www.sencha.com/blog/2010/08/27/tips-and-tricks-for-ext-js-component-developers/ | |
*/ | |
someMethod: function() { | |
if (!this.rendered) { | |
this.on('render', this.someMethod, this, {single: true}); | |
return; | |
} | |
// typical processing | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment