-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';
}
}
}
가 어떻게 양식 객체를 얻을 수있다, 나는이 표현하지만 성공없이 사용하여 시도.
var form = Ext.getCmp('formKMLRcd').getForm();
고마워요! 당신은 Ext.apply 잘못 사용하는
그것은 매우 잘 작동 당신이 (당신의 경우, 패널에) 지정된 설정을 적용 할 objecton를 지정해야합니다! 감사합니다. –