ExtJS 在 FF + IE 中禁用面板

问题描述 投票:0回答:2

我有

Ext.getCmp("id").disable();
并且它可以在 FF 中工作,但不能在 IE 中工作,如果我的面板 id 是 test,或者面板名称是 test,我如何在不从一开始就禁用它的情况下禁用它:disabled: true?

extjs panels
2个回答
1
投票

试试这个:

Ext.getCmp('id').setDisabled(true);

setDisabled( Boolean disabled ) : 通过布尔值设置禁用/启用的便捷功能。

检查文档


0
投票

Ext.getCmp('id').setDisabled(true);

最新问题
© www.soinside.com 2019 - 2025. All rights reserved.