| 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" djConfig="parseOnLoad: true, isDebug: true"> |
| 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 | dojo.require("dojox.mvc"); |
| 14 | dojo.require("dojox.mvc.Group"); |
| 15 | dojo.require("dojox.mvc.Repeat"); |
| 16 | dojo.require("dijit.form.TextBox"); |
| 17 | dojo.require("dijit.form.Button"); |
| 18 | dojo.require("dojo.parser"); |
| 19 | dojo.require("dojox.mvc.tests.test_templatedWidget.myMvcTemplated"); |
| 20 | |
| 21 | // Raw records for the master detail |
| 22 | var search_results_init = { |
| 23 | "Query": "Engineers", |
| 24 | "Results": [{ |
| 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 | "First": "Ben", |
| 34 | "Last": "Beckham", |
| 35 | "Location": "NY", |
| 36 | "Office": "5N47", |
| 37 | "Email": "[email protected]", |
| 38 | "Tel": "123-764-8599", |
| 39 | "Fax": "123-764-8600" |
| 40 | }, { |
| 41 | "First": "John", |
| 42 | "Last": "Jacklin", |
| 43 | "Location": "CA", |
| 44 | "Office": "6701", |
| 45 | "Email": "[email protected]", |
| 46 | "Tel": "408-764-1234", |
| 47 | "Fax": "408-764-4321" |
| 48 | }] |
| 49 | }; |
| 50 | |
| 51 | // The dojox.mvc.StatefulModel class creates a data model instance |
| 52 | // where each leaf within the data model is decorated with dojo.Stateful |
| 53 | // properties that widgets can bind to and watch for their changes. |
| 54 | var searchRecords = dojox.mvc.newStatefulModel({ |
| 55 | data: search_results_init |
| 56 | }); |
| 57 | |
| 58 | dojo.ready(function(){ |
| 59 | //dojo.parser.parse(dojo.byId('container')); |
| 60 | dojo.parser.parse(); |
| 61 | }); |
| 62 | </script> |
| 63 | </head> |
| 64 | <body class="claro" style="background-image: url(../images/master_detail.png)"> |
| 65 | <div id="wrapper"> |
| 66 | <div id="main"> |
| 67 | <div id="leftNav"></div> |
| 68 | <div id="mainContent"> |
| 69 | <div> |
| 70 | Test exprchar. Widget template test uses exprchar of # and others for template:#{this.index} etc. |
| 71 | </div> |
| 72 | <br/> |
| 73 | <div id="container2" data-dojo-type="dojox.mvc.tests.test_templatedWidget.myMvcTemplated"> |
| 74 | </div> |
| 75 | </div> |
| 76 | </div> |
| 77 | </div> |
| 78 | </body> |