2011-11-13 4 views
0

도와주세요. 사용자 입력을 얻으려면 어떻게해야합니까?onclick 이벤트에서 양식 필드 값을 얻는 방법

Mytest.views.Forma = Ext.extend(Ext.Panel, {/*This is a panel which displays all*/ 

initComponent: function(){ 

    Ext.apply(this, {/*derive the form*/ 
     items: [ { 
      xtype: 'fieldset', 
      id: 'formaFieldset', 
      title: '', 
      items: [ 
       { 
        name: 'from', 
        label: 'From' 
       } 
      ] 
     }, 
     { 
      xtype: 'button', 
      cls: 'btnAction', 
      text:'Price Check', 
      handler:function(){ 
       //Here you need to print the values ​​of form fields    
        } 
       }); 
      } 
     } ] 
    }); 
    Mytest.views.Forma.superclass.initComponent.call(this); 
} 
    }); 

    Ext.reg('forma', Mytest.views.Forma); 

답변

0

getValues ​​() 함수를 사용하여 양식 필드의 값을 가져올 수 있습니다.

관련 문제