File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -120,7 +120,38 @@ class ControlsContainer extends Container {
120120 } , {
121121 module : Container ,
122122 header : { text : 'Selection' } ,
123- layout : 'vbox'
123+ layout : 'vbox' ,
124+
125+ itemDefaults : {
126+ module : Radio ,
127+ hideLabel : true ,
128+ hideValueLabel : false ,
129+ labelText : '' ,
130+ listeners : { change : 'up.onSelectionModelChange' } ,
131+ name : 'selectionModel' ,
132+ style : { marginTop : '.3em' } ,
133+ width : 200
134+ } ,
135+
136+ items : [ {
137+ ntype : 'label' ,
138+ style : { marginTop : 0 } ,
139+ text : 'Pick the Selection Model'
140+ } , {
141+ style : { marginTop : '1em' } ,
142+ valueLabelText : 'Cell'
143+ } , {
144+ valueLabelText : 'Column'
145+ } , {
146+ checked : true ,
147+ valueLabelText : 'Row'
148+ } , {
149+ valueLabelText : 'Cell & Column'
150+ } , {
151+ valueLabelText : 'Cell & Row'
152+ } , {
153+ valueLabelText : 'Cell & Column & Row'
154+ } ]
124155 } ]
125156 } ] ,
126157 /**
@@ -214,6 +245,16 @@ class ControlsContainer extends Container {
214245 this . grid . store . getFilter ( data . component . name ) . value = data . value
215246 }
216247
248+ /**
249+ * @param {Object } data
250+ */
251+ onSelectionModelChange ( data ) {
252+ console . log ( data )
253+ }
254+
255+ /**
256+ *
257+ */
217258 updateRowsLabel ( ) {
218259 let { store} = this . grid ;
219260
You can’t perform that action at this time.
0 commit comments