form component
詳細
form loadDataが完了すると、対応するフィールドに値を設定できます.formpanelでform.findField(fieldName)対応するExtのcomponentを見つけます.
formfindField()の実装
form loadDataが完了すると、対応するフィールドに値を設定できます.formpanelでform.findField(fieldName)対応するExtのcomponentを見つけます.
formfindField()の実装
Ext.form.BaseForm .
findField : function (id) {
var field = this.items.get(id);
if (!field) {
this.items.each(function (f) {if (f.isFormField && (f.dataIndex == id || f.id == id || f.getName() == id)) {field = f;return false;}});
}
return field || null;
}
this.items.each items formpanel ,
onAdd : function(ct, c) { // Ext.form.formPanel (Form.js)
// component formField, this.form , formpanel setValues component 。
if (c.isFormField) {
this.form.add(c);
}
},
が見られます