| 1 |
define([ |
| 2 |
"dojo/_base/declare", |
| 3 |
"dijit/_WidgetBase", |
| 4 |
"dijit/_TemplatedMixin", |
| 5 |
"dijit/_WidgetsInTemplateMixin", |
| 6 |
"dijit/registry", |
| 7 |
"dojo/text!./test_mvc_widget_template.html", |
| 8 |
"dojox/mvc/at", |
| 9 |
"dijit/form/TextBox", |
| 10 |
"dojox/mvc/Group", |
| 11 |
"dojox/mvc/Repeat" |
| 12 |
], function(declare, _WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin, registry, template, at){ |
| 13 |
return declare("dojox.mvc.tests.test_templatedWidget.myMvcTemplated", [_WidgetBase, _TemplatedMixin, _WidgetsInTemplateMixin], { |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
ctrl: null, |
| 24 |
|
| 25 |
templateString: template, |
| 26 |
|
| 27 |
buildRendering: function(){ |
| 28 |
console.log("call myMvcTemplated buildRendering"); |
| 29 |
window.at = at; |
| 30 |
this.inherited(arguments); |
| 31 |
}, |
| 32 |
|
| 33 |
getParent: function(){ |
| 34 |
console.log("Call myMvcTemplated getParent"); |
| 35 |
return null; |
| 36 |
} |
| 37 |
}); |
| 38 |
}); |