|
1 | | -import ComboBox from '../../../src/form/field/ComboBox.mjs'; |
2 | | -import Container from '../../../src/container/Base.mjs'; |
3 | | -import Radio from '../../../src/form/field/Radio.mjs'; |
4 | | -import TabContainer from '../../../src/tab/Container.mjs'; |
| 1 | +import CellColumnModel from '../../../src/selection/grid/CellColumnModel.mjs'; |
| 2 | +import CellColumnRowModel from '../../../src/selection/grid/CellColumnRowModel.mjs'; |
| 3 | +import CellModel from '../../../src/selection/grid/CellModel.mjs'; |
| 4 | +import CellRowModel from '../../../src/selection/grid/CellRowModel.mjs'; |
| 5 | +import ColumnModel from '../../../src/selection/grid/ColumnModel.mjs'; |
| 6 | +import ComboBox from '../../../src/form/field/ComboBox.mjs'; |
| 7 | +import Container from '../../../src/container/Base.mjs'; |
| 8 | +import Radio from '../../../src/form/field/Radio.mjs'; |
| 9 | +import RowModel from '../../../src/selection/grid/RowModel.mjs'; |
| 10 | +import TabContainer from '../../../src/tab/Container.mjs'; |
5 | 11 |
|
6 | 12 | /** |
7 | 13 | * @class Neo.examples.grid.bigData.ControlsContainer |
@@ -139,17 +145,23 @@ class ControlsContainer extends Container { |
139 | 145 | text : 'Pick the Selection Model' |
140 | 146 | }, { |
141 | 147 | style : {marginTop: '1em'}, |
| 148 | + selectionModel: CellModel, |
142 | 149 | valueLabelText: 'Cell' |
143 | 150 | }, { |
| 151 | + selectionModel: ColumnModel, |
144 | 152 | valueLabelText: 'Column' |
145 | 153 | }, { |
146 | 154 | checked : true, |
| 155 | + selectionModel: RowModel, |
147 | 156 | valueLabelText: 'Row' |
148 | 157 | }, { |
| 158 | + selectionModel: CellColumnModel, |
149 | 159 | valueLabelText: 'Cell & Column' |
150 | 160 | }, { |
| 161 | + selectionModel: CellRowModel, |
151 | 162 | valueLabelText: 'Cell & Row' |
152 | 163 | }, { |
| 164 | + selectionModel: CellColumnRowModel, |
153 | 165 | valueLabelText: 'Cell & Column & Row' |
154 | 166 | }] |
155 | 167 | }] |
@@ -249,7 +261,7 @@ class ControlsContainer extends Container { |
249 | 261 | * @param {Object} data |
250 | 262 | */ |
251 | 263 | onSelectionModelChange(data) { |
252 | | - console.log(data) |
| 264 | + this.grid.view.selectionModel = data.component.selectionModel |
253 | 265 | } |
254 | 266 |
|
255 | 267 | /** |
|
0 commit comments