开发者

Checkbox 'check' event

开发者 https://www.devze.com 2023-02-12 11:33 出处:网络
The following is in the initComponent of an extending class: this.checkBoxArray[0].on(\'check(this.checkBoxArray[0]\', false), this.enableAllCheckboxes, this);

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

精彩评论

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