/javascript-mode/extjs_onRender
http://github.com/ridgetang/snippets · #! · 18 lines · 17 code · 1 blank · 0 comment · 0 complexity · 885a6b55ed5061865cf0e7161326f07c MD5 · raw file
- # name : onRender
- # key : onRender
- # group : extjs
- # contributor : crazycode@gmail.com
- # This was cloned from a TextMate bundle for yasnippet.
- # --
- /**
- * ${2:Renders the HTML for this component}
- * @param {Ext.Container} ct The container to render this component to
- * @param {Number} position The position within the parent container to render this component to
- */
- onRender: function(ct, position) {
- this.el = ct.createChild({
- $0
- });
- ${1:MyClassName}.superclass.onRender.apply(this, arguments);
- }