1
下面是extjs3.4來顯示對話框畫面。Extjs3.4驗證輸入值
我未能獲得用於驗證的輸入值。
任何人都可以幫助我看看在提交給系統之前應該在哪裏獲取輸入值並實施驗證?非常感謝。
RemarkDialog = Ext.extend(Ext.Window,{
modal:true,
resizable:true,
layout:"form",
width:400,
title:"Enter Comment",
initComponent:function(){
this.items = [{
xtype: 'form',
ref: 'formPanel',
layout: 'fit',
items: [{
autoscroll:true,
hideLabel: true,
name: 'Remarks',
itemId: "Remarks",
xtype: 'textarea',
maxlength : 55,
allowBlank: false
}]
}];
this.bbar = [
'->',
{
itemId:'submit',
text:'Submit',
handler:function(btn,e){
this.fireEvent('submitpressed', this.formPanel.getForm().getFieldValues());
this.destroy();
},
scope:this
},{
itemId:'cancel',
text:'Cancel',
handler:function(btn,e){
this.destroy();
},
scope:this
}
];
RemarkDialog.superclass.initComponent.call(this,arguments);
}
});