How to add listener for check or uncheck a checkbox from a checkb开发者_JS百科oxgroup.
Use the change : ( Ext.form.CheckboxGroup this, Array checked ) event like so:
var checkboxgrp = new Ext.form.CheckBoxGroup({
.. config..
listeners : {
change : {
fn : function(checkbox, checked){
//your logic
},
scope : your-scope //---> Optional
}
}
This works for both Ext 2 and 3 versions. Don't know about 1 and 4.
加载中,请稍侯......
精彩评论