Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个窗体,我需要在满足条件时禁用它。
if (conditionIsMet){ var theFormPanel= Ext.ComponentQuery.query('#winId> #theFormPanel')[0]; }
但我怎样才能禁用它?
if (conditionIsMet){ var theFormPanel= Ext.ComponentQuery.query('#winId> #theFormPanel')[0].disable(); }
为什么在这里使用 ComponentQuery 查询?你不能通过id获取formpanel吗?Ext.getCmp('formPanelId').disable();
Ext.getCmp('formPanelId').disable();