Skip to content

Commit d92e4da

Browse files
committed
#6212 itemDefaults
1 parent 76f2b98 commit d92e4da

1 file changed

Lines changed: 26 additions & 30 deletions

File tree

examples/grid/bigData/MainContainer.mjs

Lines changed: 26 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -21,41 +21,37 @@ class MainContainer extends Viewport {
2121
module: Toolbar,
2222
flex : 'none',
2323
style : {marginBottom: '1em'},
24-
items : [{
24+
25+
itemDefaults: {
2526
module : ComboBox,
2627
clearable : false,
2728
displayField: 'id',
28-
editable : false,
29-
labelText : 'Amount Rows',
30-
labelWidth : 110,
31-
listeners : {change: 'up.onAmountRowsChange'},
32-
store : ['1000', '5000', '10000', '20000'],
33-
value : '10000',
34-
width : 200
29+
editable : false
30+
},
31+
32+
items: [{
33+
labelText : 'Amount Rows',
34+
labelWidth: 110,
35+
listeners : {change: 'up.onAmountRowsChange'},
36+
store : ['1000', '5000', '10000', '20000'],
37+
value : '10000',
38+
width : 200
3539
}, {
36-
module : ComboBox,
37-
clearable : false,
38-
displayField: 'id',
39-
editable : false,
40-
labelText : 'Amount Columns',
41-
labelWidth : 135,
42-
listeners : {change: 'up.onAmountColumnsChange'},
43-
store : ['25', '50', '75', '100'],
44-
style : {marginLeft: '2em'},
45-
value : '50',
46-
width : 200
40+
labelText : 'Amount Columns',
41+
labelWidth: 135,
42+
listeners : {change: 'up.onAmountColumnsChange'},
43+
store : ['25', '50', '75', '100'],
44+
style : {marginLeft: '2em'},
45+
value : '50',
46+
width : 200
4747
}, {
48-
module : ComboBox,
49-
clearable : false,
50-
displayField: 'id',
51-
editable : false,
52-
labelText : 'Buffer Rows',
53-
labelWidth : 100,
54-
listeners : {change: 'up.onAmountBufferRowsChange'},
55-
store : ['0', '3', '5', '10', '25', '50'],
56-
style : {marginLeft: '2em'},
57-
value : '5',
58-
width : 160
48+
labelText : 'Buffer Rows',
49+
labelWidth: 100,
50+
listeners : {change: 'up.onAmountBufferRowsChange'},
51+
store : ['0', '3', '5', '10', '25', '50'],
52+
style : {marginLeft: '2em'},
53+
value : '5',
54+
width : 160
5955
}]
6056
}, {
6157
module: GridContainer

0 commit comments

Comments
 (0)