Created
November 29, 2012 10:24
-
-
Save kjelelokk/4168050 to your computer and use it in GitHub Desktop.
Dojo myTemplateModule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
define([ | |
'dojo/_base/declare', | |
'dijit/_WidgetBase', | |
'dijit/_TemplatedMixin', | |
'dojo/text!./templates/template.html', | |
'dijit/form/Button' | |
], function (declare, _WidgetBase, _TemplatedMixin, template, button) { | |
return declare('myWidget', [_WidgetBase, _TemplatedMixin], { | |
templateString: template, | |
myFunction: function () { | |
// Gjør noe | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment