2012-11-18 3 views
0

양식 패널이 있습니다. 조건이 충족 될 때 사용 중지해야합니다.양식 패널 사용 안 함

if (conditionIsMet){ 

     var theFormPanel= Ext.ComponentQuery.query('#winId> #theFormPanel')[0]; 


} 

어떻게 비활성화 할 수 있습니까?

답변

2
if (conditionIsMet){ 
    var theFormPanel= Ext.ComponentQuery.query('#winId> #theFormPanel')[0].disable(); 
} 

왜 여기에 ComponentQuery 쿼리를 사용합니까? 이드는 formpanel을 얻을 수 없습니까? Ext.getCmp('formPanelId').disable();