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