-
Notifications
You must be signed in to change notification settings - Fork 3
/
CarMasterDetail.ui.js
78 lines (77 loc) · 2.35 KB
/
CarMasterDetail.ui.js
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
/*
* File: CarMasterDetail.ui.js
* Date: Mon Apr 12 2010 22:46:29 GMT-0700 (PDT)
*
* This file was generated by Ext Designer version xds-1.0.0.7c.
* http://www.sencha.com/products/designer/
*
* This file will be auto-generated each and everytime you export.
*
* Do NOT hand edit this file.
*/
CarMasterDetailUi = Ext.extend(Ext.Panel, {
title: 'Grid',
width: 565,
height: 400,
layout: 'vbox',
frame: true,
initComponent: function() {
this.layoutConfig = {
align: 'stretch'
};
this.items = [
{
xtype: 'grid',
title: 'My Grid',
store: 'MyStore',
flex: 1,
header: false,
viewConfig: {
forceFit: true
},
ref: 'grid',
columns: [
{
xtype: 'gridcolumn',
header: 'Manufacturer',
sortable: true,
resizable: true,
width: 100,
dataIndex: 'manufacturer'
},
{
xtype: 'gridcolumn',
header: 'Model',
sortable: true,
resizable: true,
width: 100,
dataIndex: 'model'
},
{
xtype: 'numbercolumn',
header: 'Price',
sortable: true,
resizable: true,
width: 100,
format: '$0,000.00',
align: 'right',
dataIndex: 'price'
}
]
},
{
xtype: 'panel',
flex: 1,
tpl: [
'<img src="cars/{img}" style="float: right" />',
'Manufacturer: {manufacturer}<br/>',
'Model: <a href="{wiki}" target="_blank">{model}</a><br/>',
'Price: {price:usMoney}<br/>'
],
padding: 7,
ref: 'detail'
}
];
CarMasterDetailUi.superclass.initComponent.call(this);
}
});