Skip to content

Instantly share code, notes, and snippets.

@abickford
Created August 20, 2012 20:04
Show Gist options
  • Save abickford/3407345 to your computer and use it in GitHub Desktop.
Save abickford/3407345 to your computer and use it in GitHub Desktop.
Dijit Templated Widget Bootstrap
define("my/WidgetName",
[ "dojo/_base/declare",
"dijit/_WidgetBase",
"dijit/_TemplatedMixin",
"dijit/_WidgetsInTemplateMixin",
"dojo/text!./templates/WidgetTemplate.html"], function(declare, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, template) {
return declare("my.WidgetName", [_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], {
templateString: template,
postCreate : function() {
console.log("postCreate");
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment