/ Published in: JavaScript
This is a basic custom dojo widget. It mixes in dijit._Templated - this can be removed if not required. The default functions (constructor, postMixinProperties, postCreate and startup) are included in execution order.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
dojo.provide('packge.ClassName'); dojo.require('dijit._Widget'); dojo.require('dijit._Templated'); dojo.declare( 'packge.ClassName', [dijit._Widget, dijit._Templated], { templatePath : dojo.moduleUrl('package','templates/ClassName.html'), widgetsInTemplate : true, constructor : function() { }, postMixInProperties : function() { }, postCreate : function() { }, startup : function() { } } )