Skip to content

Commit 22aa66a

Browse files
committed
selection/grid/_export.mjs #6452
1 parent ddcade9 commit 22aa66a

2 files changed

Lines changed: 20 additions & 16 deletions

File tree

examples/grid/bigData/ControlsContainer.mjs

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,8 @@
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';
116

127
/**
138
* @class Neo.examples.grid.bigData.ControlsContainer
@@ -145,23 +140,23 @@ class ControlsContainer extends Container {
145140
text : 'Pick the Selection Model'
146141
}, {
147142
style : {marginTop: '1em'},
148-
selectionModel: CellModel,
143+
selectionModel: selection.CellModel,
149144
valueLabelText: 'Cell'
150145
}, {
151-
selectionModel: ColumnModel,
146+
selectionModel: selection.ColumnModel,
152147
valueLabelText: 'Column'
153148
}, {
154149
checked : true,
155-
selectionModel: RowModel,
150+
selectionModel: selection.RowModel,
156151
valueLabelText: 'Row'
157152
}, {
158-
selectionModel: CellColumnModel,
153+
selectionModel: selection.CellColumnModel,
159154
valueLabelText: 'Cell & Column'
160155
}, {
161-
selectionModel: CellRowModel,
156+
selectionModel: selection.CellRowModel,
162157
valueLabelText: 'Cell & Row'
163158
}, {
164-
selectionModel: CellColumnRowModel,
159+
selectionModel: selection.CellColumnRowModel,
165160
valueLabelText: 'Cell & Column & Row'
166161
}]
167162
}]
@@ -261,6 +256,7 @@ class ControlsContainer extends Container {
261256
* @param {Object} data
262257
*/
263258
onSelectionModelChange(data) {
259+
console.log(selection);
264260
this.grid.view.selectionModel = data.component.selectionModel
265261
}
266262

src/selection/grid/_export.mjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import CellColumnModel from './CellColumnModel.mjs';
2+
import CellColumnRowModel from './CellColumnRowModel.mjs';
3+
import CellModel from './CellModel.mjs';
4+
import CellRowModel from './CellRowModel.mjs';
5+
import ColumnModel from './ColumnModel.mjs';
6+
import RowModel from './RowModel.mjs';
7+
8+
export {CellColumnModel, CellColumnRowModel, CellModel, CellRowModel, ColumnModel, RowModel};

0 commit comments

Comments
 (0)