PDA

View Full Version : question on dynamic.js



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

tryanDLS
2 May 2007, 2:12 PM
Yes, the dynamic example is building all the elements from scratch - they are all configurable. Most, but not all are in doc.