Checkbox action

I need to add a Check box , and when the user checks on it (as when changing the value of check/uncheck ), the console.log statement prints. So far, I have been able to display this flag, but have failed to access its verification event.

 { xtype: 'checkboxgroup', columns: 1, listeners: { change: function (this, newValue, oldValue, eOpts) { console.log('change'); console.log(newValue); } }, items: [{ boxLabel: 'Cars', name: 'chk1', inputValue: '1' }] } 
+4
source share
1 answer

As in any other field, the change event must be executed.

Example: http://jsfiddle.net/mbbjz/2/

+5
source

All Articles