PDA

View Full Version : Size of a fieldLabel in form !!



kernings
29 Jul 2007, 9:07 AM
Hello, I have a little problem, my fieldlabel display on two lines because the width of the fieldLabel is to small, how enlarge this size ??


var field_val = new Ext.form.TextField({
fieldLabel: 'Write the correct value :', // There, the text is too long for Label size
name: 'val',
width: 200,
allowBlank:false,
blankText:'required'
});

It is possible to have the entire list of the options we can used into the form widget ?

Thank you very much !!
bye

John Sourcer
29 Jul 2007, 9:27 AM
Are your forms in a column?

I use:


myForm.column({width:290, labelWidth: 55, style:'margin-left:0px; text-align: left;'},
new Ext.form.NumberField({
value: dsProfile.getAt(0).id
,name:'ID'
,itemCls:'invisible'
}).....

mdombos
29 Jul 2007, 9:32 AM
When u create the form there is a labalWidth config option...



frm = new Ext.form.Form({
labelWidth:100
});

kernings
29 Jul 2007, 10:24 AM
ok thanks mdombos, where can I find all this options ? ... I haven't find this information in the classic ext documentation ...

mdombos
29 Jul 2007, 11:21 AM
ok thanks mdombos, where can I find all this options ? ... I haven't find this information in the classic ext documentation ...

Every page of the ext api reference there is a Config Option section, like this one:
http://extjs.com/deploy/ext/docs/output/Ext.form.Form.html#configs