Debian Codegraph @

dojox/mvc/tests/test_templatedWidgetList/test_mvc_widget3.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/ListController",
17 "dojox/mvc/tests/test_templatedWidgetList/myMvcTemplated3",
18 "dojox/mvc/tests/test_templatedWidgetList/myMvcTemplated3bDetails",
19 "dojox/mvc/WidgetList",
20 "dojo/dom",
21 "dojox/mvc/Group",
22 "dojox/mvc/Output",
23 "dijit/form/TextBox",
24 "dojo/domReady!"
25 ], function(parser, getStateful, ListController, myMvcTemplated3, myMvcTemplated3bDetails, WidgetList, dom){
26 array = getStateful([
27 {
28 Serial: "A111",
29 First: "Anne",
30 Last: "Ackerman",
31 Location: "NY",
32 Office: "1S76",
33 Email: "[email protected]",
34 Tel: "123-764-8237",
35 Fax: "123-764-8228"
36 },
37 {
38 Serial: "B111",
39 First: "Ben",
40 Last: "Beckham",
41 Location: "NY",
42 Office: "5N47",
43 Email: "[email protected]",
44 Tel: "123-764-8599",
45 Fax: "123-764-8600"
46 },
47 {
48 Serial: "C111",
49 First: "Chad",
50 Last: "Chapman",
51 Location: "CA",
52 Office: "1278",
53 Email: "[email protected]",
54 Tel: "408-764-8237",
55 Fax: "408-764-8228"
56 }
57 ]);
58
59 ctrl = new ListController({model: array});
60
61
62 parser.parse();
63
64 (new WidgetList({children: ctrl.model, childClz: myMvcTemplated3, childParams: {
65 ctrl : ctrl
66 }},
67 dom.byId("programmaticRepeat2"))).startup();
68
69 (new myMvcTemplated3bDetails({ctrl : ctrl},
70 dom.byId("programmatic3bDetails"))).startup();
71 });
72 </script>
73 </head>
74 <body class="claro" style="background-image: url(../images/master_detail.png)">
75 <script type="dojo/require">at: "dojox/mvc/at"</script>
76 <div id="wrapper">
77 <div id="main">
78 <div id="leftNav"></div>
79 <div id="mainContent">
80 <div>
81 Widget template test uses a custom widget for the WidgetList and the details.
82 </div>
83 <br/>
84
85 <h1>Repeating programmatically created template widget</h1>
86 <div id="programmaticRepeat2"></div>
87
88 <h1>Details for selected item programmatically created template widget</h1>
89 <div id="programmatic3bDetails"></div>
90 </div>
91 </div>
92 </div>
93 </body>
94 </html>