tshen
2 May 2007, 11:22 AM
Hi,
As I am looking at the dynamic.js, which I downloaded from ext site as an example for dynamic form, I got puzzled over the following section:
/*
* ================ Simple form =======================
*/
var simple = new Ext.form.Form({
labelWidth: 75, // label settings here cascade unless overridden
url:'save-form.php'
});
simple.add(
new Ext.form.TextField({
fieldLabel: 'First Name',
name: 'first',
width:175, allowBlank:false
}),
I recognize allowBlank is one of the Config Option, how about "fieldLabel", "name" and "width"?
Does this have something to do with AutoCreate?
Thanks
As I am looking at the dynamic.js, which I downloaded from ext site as an example for dynamic form, I got puzzled over the following section:
/*
* ================ Simple form =======================
*/
var simple = new Ext.form.Form({
labelWidth: 75, // label settings here cascade unless overridden
url:'save-form.php'
});
simple.add(
new Ext.form.TextField({
fieldLabel: 'First Name',
name: 'first',
width:175, allowBlank:false
}),
I recognize allowBlank is one of the Config Option, how about "fieldLabel", "name" and "width"?
Does this have something to do with AutoCreate?
Thanks