Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs 复选框';检查';事件_Extjs - Fatal编程技术网

Extjs 复选框';检查';事件

Extjs 复选框';检查';事件,extjs,Extjs,以下内容位于扩展类的initComponent中: this.checkBoxArray[0].on('check(this.checkBoxArray[0]', false), this.enableAllCheckboxes, this); 在取消选中复选框后,它不会执行此操作。enableAllCheckboxes()。Add()到第二个参数中的函数中您的代码应该是 ExtJS 3.x: this.checkBoxArray[0].on('check', this.enableAllCh

以下内容位于扩展类的initComponent中:

this.checkBoxArray[0].on('check(this.checkBoxArray[0]', false), this.enableAllCheckboxes, this);
在取消选中复选框后,它不会执行此操作。enableAllCheckboxes()。

Add()到第二个参数中的函数中

您的代码应该是

ExtJS 3.x:

this.checkBoxArray[0].on('check', this.enableAllCheckboxes, this);
ExtJS 4.x:

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

它不适用于ExtJS 4.x,在那里您可以使用“更改”事件。