/javascript-mode/extjs_vbuilder
http://github.com/ridgetang/snippets · #! · 29 lines · 26 code · 3 blank · 0 comment · 0 complexity · 3f9192bea99cba796175f61f4754db3a MD5 · raw file
- # name : vbuilder
- # key : vbuilder
- # group : extjs
- # contributor : crazycode@gmail.com
- # This was cloned from a TextMate bundle for yasnippet.
- # --
- /**
- * @class Ext.ux.MVC.plugin.${1:${TM_FILENAME/(.+)\.js$/$1/}}
- * @extends Ext.ux.MVC.ViewportBuilder
- * ${2:Describe what this viewport builder does}
- */
- Ext.ux.MVC.plugin.${1:${TM_FILENAME/(.+)\.js$/$1/}} = Ext.extend(Ext.ux.MVC.ViewportBuilder, {
- /**
- * Creates the viewport elements, taking config options from OS.viewportBuilderConfig
- * @param {Ext.ux.MVC.OS} os The OS instance to link built viewport components to
- * Assigns this.topBar, this.sideMenu, this.mainPanel, this.contentPanel and this.viewport
- * to the passed os when calling build(os)
- * @return {Ext.ux.MVC.OS} The same OS instance, now decorated with viewport components
- */
- build: function(os) {
- var config = os.getViewportBuilderConfig() || {};
-
- $0
-
- return os;
- }
- });
-
- Ext.ux.MVC.ViewportBuilderManager.register('${3:viewportType}', Ext.ux.MVC.plugin.${1:${TM_FILENAME/(.+)\.js$/$1/}});