dojox
Version:
Dojo eXtensions, a rollup of many useful sub-projects and varying states of maturity – from very stable and robust, to alpha and experimental. See individual projects contain README files for details.
67 lines (65 loc) • 1.86 kB
HTML
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Test template with Repeat using different exprchars.</title>
<script src="../../../../dojo/dojo.js" type="text/javascript" data-dojo-config="parseOnLoad: 0, isDebug: 1">
</script>
<style type="text/css">
@import "../css/app-format.css";
@import "../../../../dijit/themes/claro/claro.css";
</style>
<script type="text/javascript">
require([
"dojo/parser",
"dojox/mvc/getStateful",
"dojox/mvc/ModelRefController",
"dojox/mvc/tests/test_templatedWidget/myMvcTemplated",
"dojo/domReady!"
], function(parser, getStateful, ModelRefController, myMvcTemplated){
ctrl = new ModelRefController({model: getStateful([
{
First: "Anne",
Last: "Ackerman",
Location: "NY",
Office: "1S76",
Email: "a.a@test.com",
Tel: "123-764-8237",
Fax: "123-764-8228"
}, {
First: "Ben",
Last: "Beckham",
Location: "NY",
Office: "5N47",
Email: "b.b@test.com",
Tel: "123-764-8599",
Fax: "123-764-8600"
}, {
First: "John",
Last: "Jacklin",
Location: "CA",
Office: "6701",
Email: "j.j@test.com",
Tel: "408-764-1234",
Fax: "408-764-4321"
}
])});
parser.parse();
});
</script>
</head>
<body class="claro" style="background-image: url(../images/master_detail.png)">
<div id="wrapper">
<div id="main">
<div id="leftNav"></div>
<div id="mainContent">
<div>
Test exprchar. Widget template test uses exprchar of # and others for template:#{this.index} etc.
</div>
<br/>
<div id="container2" data-dojo-type="dojox.mvc.tests.test_templatedWidget.myMvcTemplated" data-dojo-props="ctrl: ctrl"></div>
</div>
</div>
</div>
</body>
</html>