Skip to content

Instantly share code, notes, and snippets.

@kjelelokk
Created November 29, 2012 10:24
Show Gist options
  • Save kjelelokk/4168050 to your computer and use it in GitHub Desktop.
Save kjelelokk/4168050 to your computer and use it in GitHub Desktop.
Dojo myTemplateModule
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