开发者

Checkbox 'check' event

The following is in the initComponent of an extending class:

this.checkBoxArray[0].on('check(this.checkBoxArray[0]', false), this.enableAllCheckboxes, this);

It does not execute this.enableAllCheckboxes() after unclicking the c开发者_Python百科heckbox.


Your code should be...

ExtJS 3.x:

this.checkBoxArray[0].on('check', this.enableAllCheckboxes, this);

ExtJS 4.x:

this.checkBoxArray[0].on('change', this.enableAllCheckboxes, this);


Add () to the function in the second argument

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜