Debian Codegraph @

dojox/mvc/tests/test_templatedWidgetList/test_mvc_widget.html

raw symbols SCIP
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta http-equiv="Content-type" content="text/html; charset=utf-8">
5 <title>Test template with Repeat using different exprchars.</title>
6 <script src="../../../../dojo/dojo.js" type="text/javascript" data-dojo-config="parseOnLoad: 0, isDebug: 1, mvc: {debugBindings: 1}">
7 </script>
8 <style type="text/css">
9 @import "../css/app-format.css";
10 @import "../../../../dijit/themes/claro/claro.css";
11 </style>
12 <script type="text/javascript">
13 require([
14 "dojo/parser",
15 "dojox/mvc/getStateful",
16 "dojox/mvc/ModelRefController",
17 "dojox/mvc/tests/test_templatedWidgetList/myMvcTemplated",
18 "dojox/mvc/WidgetList",
19 "dojo/dom",
20 "dojo/domReady!"
21 ], function(parser, getStateful, ModelRefController, myMvcTemplated, WidgetList, dom){
22 array = getStateful([
23 {
24 Serial: "A111",
25 First: "Anne",
26 Last: "Ackerman",
27 Location: "NY",
28 Office: "1S76",
29 Email: "[email protected]",
30 Tel: "123-764-8237",
31 Fax: "123-764-8228"
32 },
33 {
34 Serial: "B111",
35 First: "Ben",
36 Last: "Beckham",
37 Location: "NY",
38 Office: "5N47",
39 Email: "[email protected]",
40 Tel: "123-764-8599",
41 Fax: "123-764-8600"
42 },
43 {
44 Serial: "C111",
45 First: "Chad",
46 Last: "Chapman",
47 Location: "CA",
48 Office: "1278",
49 Email: "[email protected]",
50 Tel: "408-764-8237",
51 Fax: "408-764-8228"
52 }
53 ]);
54
55 ctrl = new ModelRefController({model: array});
56
57
58 parser.parse();
59
60 // (new WidgetList({children: array, childClz: myMvcTemplated, childParams: {
61 // startup: function(){
62 // this.labelNode.set("value", at("rel:", "Serial"));
63 // this.inputNode.set("value", at("rel:", "First"));
64 // this.nameInputNode.set("value", at("rel:", "First"));
65 // this.inherited("startup", arguments);
66 // }
67 // }}, dom.byId("programmaticRepeat"))).startup();
68
69 (new WidgetList({children: array, childClz: myMvcTemplated},
70 dom.byId("programmaticRepeat"))).startup();
71
72 (new WidgetList({children: ctrl.model, childClz: myMvcTemplated},
73 dom.byId("programmaticRepeat2"))).startup();
74
75 });
76 </script>
77 </head>
78 <body class="claro" style="background-image: url(../images/master_detail.png)">
79 <div id="wrapper">
80 <div id="main">
81 <div id="leftNav"></div>
82 <div id="mainContent">
83 <div>
84 Test exprchar. Widget template test uses exprchar of # and others for template:#{this.index} etc.
85 </div>
86 <br/>
87 <!--
88 <div id="container2" data-dojo-type="dojox.mvc.tests.test_templatedWidgetList.myMvcTemplated" data-dojo-props="ctrl: ctrl"></div>
89 -->
90 <h1>First Repeating programmatically created template widget</h1>
91 <div id="programmaticRepeat"></div>
92
93 <h1>Second Repeating programmatically created template widget</h1>
94 <div id="programmaticRepeat2"></div>
95 </div>
96 </div>
97 </div>
98 </body>
99 </html>