Debian Codegraph @

dojox/mvc/tests/test_templatedWidgetList/myMvcTemplated3bDetails.js

raw symbols SCIP
1 define([
2 "dojo/_base/declare",
3 "dojox/mvc/Templated",
4 "dijit/registry",
5 "dojo/text!./test_mvc_widget_template3bDetails.html",
6 "dojox/mvc/at",
7 "dijit/form/TextBox",
8 "dijit/form/Button",
9 "dojox/mvc/Group",
10 "dojox/mvc/Output",
11 "dojox/mvc/Repeat"
12 ], function(declare, Templated, registry, template, at){
13 return dojo.declare("dojox.mvc.tests.test_templatedWidgetList.myMvcTemplated3bDetails", [Templated], {
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 startup: function(){
28 console.log("startup called in myMvcTemplated3bDetails!!! ");
29 this.groupNode.set("target", at(ctrl, 'cursor'));
30
31 this.serialNode.set("value", at("rel:", "Serial"));
32 this.firstNode.set("value", at("rel:", "First"));
33 this.lastNode.set("value", at("rel:", "Last"));
34 // this.nameInputNode.set("value", at("rel:", "First"));
35 this.inherited("startup", arguments);
36 },
37
38 buildRendering: function(){
39 console.log("call myMvcTemplated3bDetails buildRendering");
40 window.at = at;
41 this.inherited(arguments);
42 },
43
44 getParent: function(){
45 console.log("Call myMvcTemplated3bDetails getParent");
46 return null;
47 }
48 });
49 });