/javascript-mode/extjs_onRender

http://github.com/ridgetang/snippets · #! · 18 lines · 17 code · 1 blank · 0 comment · 0 complexity · 885a6b55ed5061865cf0e7161326f07c MD5 · raw file

  1. # name : onRender
  2. # key : onRender
  3. # group : extjs
  4. # contributor : crazycode@gmail.com
  5. # This was cloned from a TextMate bundle for yasnippet.
  6. # --
  7. /**
  8. * ${2:Renders the HTML for this component}
  9. * @param {Ext.Container} ct The container to render this component to
  10. * @param {Number} position The position within the parent container to render this component to
  11. */
  12. onRender: function(ct, position) {
  13. this.el = ct.createChild({
  14. $0
  15. });
  16. ${1:MyClassName}.superclass.onRender.apply(this, arguments);
  17. }