Return to Snippet

Revision: 6988
at June 30, 2008 03:24 by otaqui


Updated Code
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() {
		
		}
	}
)

Revision: 6987
at June 30, 2008 03:21 by otaqui


Initial Code
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() {
		
		}
	}
)

Initial URL

                                

Initial Description
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.

Initial Title
Custom Dojo Widget

Initial Tags

                                

Initial Language
JavaScript