Debian Codegraph @

dojox/mvc/tests/test_templatedWidget/myMvcTemplated.js

raw symbols SCIP
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 // summary:
15 // A sample templated widget for dojox.mvc
16 // description:
17 // This template is used to show how to use exprchar to avoid instance of _TemplatedMixin error in dojo.mvc data binding.
18 // If the templateString contains ${xxx}, it will throw an template error, use #{xxx} with exprchar :"#" instead.
19 // See how it works in test_mvc_widget.html and test_mvc_widget_template.html
20
21 // ctrl: dojox.mvc.ModelRefController
22 // The controller that the form widgets in the template refer to.
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 });