source: Dev/trunk/src/client/dojox/app/tests/mediaQueryLayoutApp/mediaQueryLayoutApp.js

Last change on this file was 483, checked in by hendrikvanantwerpen, 11 years ago

Added Dojo 1.9.3 release.

File size: 1.5 KB
Line 
1require(["dojo/_base/window","dojox/app/main", "dojox/json/ref", "dojo/text!./config.json", "dojo/sniff"],
2        function(win, Application, jsonRef, config, has){
3        win.global.modelApp = {};
4        modelApp.names = {
5                identifier: "id",
6                items: [{
7                        "id": "1",
8                        "Serial": "360324",
9                        "First": "John",
10                        "Last": "Doe",
11                        "Email": "jdoe@us.ibm.com",
12                        "ShipTo": {
13                                "Street": "123 Valley Rd",
14                                "City": "Katonah",
15                                "State": "NY",
16                                "Zip": "10536"
17                        },
18                        "BillTo": {
19                                "Street": "17 Skyline Dr",
20                                "City": "Hawthorne",
21                                "State": "NY",
22                                "Zip": "10532"
23                        }
24                }]
25        };
26
27        modelApp.listData = {
28                identifier: "id",
29                'items':[{
30                        "id": "item1",
31                        "label": "Chad Chapman",
32                        "rightIcon":"mblDomButtonBlueCircleArrow",
33                        "First": "Chad",
34                        "Last": "Chapman",
35                        "Location": "CA",
36                        "Office": "1278",
37                        "Email": "c.c@test.com",
38                        "Tel": "408-764-8237",
39                        "Fax": "408-764-8228"
40                }, {
41                        "id": "item2",
42                        "label": "Irene Ira",
43                        "rightIcon":"mblDomButtonBlueCircleArrow",
44                        "First": "Irene",
45                        "Last": "Ira",
46                        "Location": "NJ",       
47                        "Office": "F09",
48                        "Email": "i.i@test.com",
49                        "Tel": "514-764-6532",
50                        "Fax": "514-764-7300"
51                }, {
52                        "id": "item3",
53                        "label": "John Jacklin",
54                        "rightIcon":"mblDomButtonBlueCircleArrow",
55                        "First": "John",
56                        "Last": "Jacklin",
57                        "Location": "CA",
58                        "Office": "6701",
59                        "Email": "j.j@test.com",
60                        "Tel": "408-764-1234",
61                        "Fax": "408-764-4321"
62                }]
63        };
64        var cfg = jsonRef.fromJson(config);
65        has.add("ie9orLess", has("ie") && (has("ie") <= 9));
66        Application(cfg);
67       
68});
Note: See TracBrowser for help on using the repository browser.