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 クエリを使用するのはなぜですか? formpanel を ID で取得できませんか?Ext.getCmp('formPanelId').disable();
Ext.getCmp('formPanelId').disable();