Debian Codegraph @

dojox/mvc/tests/1.7/test_templatedWidget/myMvcTemplated.js

raw symbols SCIP
1 /*
2 * This template is used to show how to use exprchar to avoid instance of _TemplatedMixin error in dojo.mvc data binding.
3 * If the templateString contains ${xxx}, it will throw an template error, use #{xxx} with exprchar :"#" instead.
4 * See how it works in test_mvc_widget.html and test_mvc_widget_template.html
5 */
6 define(["dojo", "dijit", "dojox", "dijit/_Widget", "dijit/_TemplatedMixin", "dojo/text!./test_mvc_widget_template.html"],
7 function(dojo, dijit, dojox, Widget, TemplatedMixin, template){
8 return dojo.declare("dojox.mvc.tests.test_templatedWidget.myMvcTemplated", [Widget, TemplatedMixin], {
9 templateString: template,
10 widgetsInTemplate: true,
11
12 buildRendering: function(){
13 console.log("call myMvcTemplated buildRendering");
14 this.inherited(arguments);
15 },
16
17 getParent: function(){
18 console.log("Call myMvcTemplated getParent");
19 return null;
20 }
21 });
22 });