-1
現在我使用ExtJS的3.4得到這種形式:ExtJS的 - 使用getForm問題()
config = Ext.apply({
title: 'Fluxo de Reincidencia',
id: 'formKMLRcd',
name: 'formKMLRcd',
border: true,
bodyStyle: "padding: 10px",
layout: "form",
autoScroll: false,
items: [{
xtype: "datefield",
ref: "../extent",
anchor: "100%",
fieldLabel: 'Data Inicio',
emptyText: 'informe a data de inicio',
name: 'txtRcdDataInicio',
id: 'txtRcdDataInicio',
format: 'd/m/Y',
altFormats: 'd/m/Y',
allowBlank: false,
validator: function (value) {
var date = this.parseDate(this.getValue());
if (!date) {
return 'Informe uma data valida';
}
}
}
我怎樣才能得到表單對象,我試圖用這種表達,但沒有sucess。
var form = Ext.getCmp('formKMLRcd').getForm();
謝謝!
效果很不錯! 謝謝! –