PDA

View Full Version : checkboxgroup change event: what box is changed?



jumpow
12 Aug 2013, 2:51 AM
in listener of checkboxgroup
change (http://docs.sencha.com/extjs/4.2.1/#%21/api/Ext.form.field.Field-event-change)( this, newValue, oldValue, eOpts )
how I may know? wich box is changed?

aaugen
12 Aug 2013, 11:51 PM
Hi,

If you want to retrieve selected checkbox components, you can use getChecked() method like this:


listeners: {
change: function(box, newValue, oldValue) {
console.log(box.getChecked());
}
}

jumpow
13 Aug 2013, 12:06 PM
I need totally other.<br>There is four checkboxes and I need know what box was CLEARED.<br>