Skip to content

Instantly share code, notes, and snippets.

@prongs
Created December 31, 2012 12:03
Show Gist options
  • Save prongs/4419357 to your computer and use it in GitHub Desktop.
Save prongs/4419357 to your computer and use it in GitHub Desktop.
define(["dojo/_base/declare","dojo/dom",
"dijit/_Widget", "dijit/_TemplatedMixin",
"dojo/text!./templates/MainViewWidget.html",
"dijit/layout/TabContainer", "dijit/layout/ContentPane","dijit/layout/BorderContainer","dijit/form/TextBox", "dijit/layout/AccordionContainer"],
function(declare, dom, _Widget, _TemplatedMixin, template){
return declare("package.MainViewWidget", [_Widget, _TemplatedMixin], {
// widgetsInTemplate: true, /*keep this false, otherwise data-dojo-attach-event attribute is a pain in the ass!*/
templateString: template,
constructor: function(){
},
startup: function(){
},
search: function(){
alert('hi');
}
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment