So, I've been using dojo since v0.3. Currently, I'm using v1.2. One thing that has always bugged me is how to communicate with widgets contained in a custom widget's template. For example, say I have this widget:
dojo.provide("custom.CustomWidget");
...
dojo.declare("custom.CustomWidget", [dijit._Widget, dijit._Templated], {
templatePath: dojo.moduleUrl("custom", "templates/CustomWidget.html"),
widgetsInTemplate: true
_doSomething: function(event) {
alert("do something");
}
});
...
dojo.declare("custom.CustomWidget", [dijit._Widget, dijit._Templated], {
templatePath: dojo.moduleUrl("custom", "templates/CustomWidget.html"),
widgetsInTemplate: true
_doSomething: function(event) {
alert("do something");
}
});
And in my CustomWidget.html template:
...
