Skip to content

Instantly share code, notes, and snippets.

@malteo
Created October 13, 2010 09:42
Show Gist options
  • Save malteo/623753 to your computer and use it in GitHub Desktop.
Save malteo/623753 to your computer and use it in GitHub Desktop.
Allowing Users To Invoke Methods Before A Component Is Rendered in ExtJS
/**
* 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