开发者

How to add listener to each checkboxes of a checkboxgroup in extjs

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜