-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdemo.xds
129 lines (129 loc) · 2.47 KB
/
demo.xds
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"name": "demo.xds",
"projectId": "B96B7C54-028F-4F0E-BC24-E0F04CF95AFD",
"settings": {
"urlPrefix": "http://localhost/releases/ext-3.2-rc/examples/demo/",
"directAPI": "",
"spacesToIndent": "4",
"codeGenFormat": "Class",
"extPath": "http://extjs.cachefly.net/ext-3.2.0/"
},
"xdsVersion": "xds-1.0.0.7c",
"components": [
{
"cid": "panel",
"jsClass": "CarMasterDetail",
"layoutConfig": {
"align": "stretch"
},
"userConfig": {
"layout": "vbox",
"height": 400,
"frame": true,
"title": "Grid",
"width": 565
},
"cn": [
{
"cid": "grid",
"jsClass": "MyGrid",
"userConfig": {
"flex": 1,
"header": false,
"store": "MyStore",
"autoRef": "grid",
"viewConfig": {
"forceFit": true
}
},
"cn": [
{
"cid": "gridcolumn",
"jsClass": "MyColumn",
"userConfig": {
"header": "Manufacturer",
"dataIndex": "manufacturer"
}
},
{
"cid": "gridcolumn",
"jsClass": "MyColumn1",
"userConfig": {
"header": "Model",
"dataIndex": "model"
}
},
{
"cid": "numbercolumn",
"jsClass": "MyColumn2",
"userConfig": {
"header": "Price",
"dataIndex": "price",
"format": "$0,000.00"
}
}
]
},
{
"cid": "panel",
"jsClass": "MyPanel1",
"userConfig": {
"flex": 1,
"tpl": "<img src=\"cars/{img}\" style=\"float: right\" />\nManufacturer: {manufacturer}<br/>\nModel: <a href=\"{wiki}\" target=\"_blank\">{model}</a><br/>\nPrice: {price:usMoney}<br/>",
"padding": 7,
"autoRef": "detail",
"title": "-ext-undefined-"
}
}
]
}
],
"stores": [
{
"cid": "jsonstore",
"jsClass": "carStore",
"userConfig": {
"url": "cars/cars.json",
"root": "data",
"autoLoad": true
},
"cn": [
{
"cid": "datafield",
"jsClass": "MyField",
"userConfig": {
"name": "manufacturer"
}
},
{
"cid": "datafield",
"jsClass": "MyField1",
"userConfig": {
"name": "model"
}
},
{
"cid": "datafield",
"jsClass": "MyField2",
"userConfig": {
"name": "price"
}
},
{
"cid": "datafield",
"jsClass": "MyField3",
"userConfig": {
"name": "wiki"
}
},
{
"cid": "datafield",
"jsClass": "MyField4",
"userConfig": {
"name": "img"
}
}
]
}
]
}