When I work with a column Layout, I can't see my labelFields My fields are in cols, but there is no label
var familyNameTextField = new Ext.form.TextField({
fieldLabel : 'Ville',
allowBlank:false,
id : 'familyName'
});
var myData = [['EDF','EDF'],['GDF','GDF']];
//The text field for the First Name
var firstNameTextField = new Ext.form.ComboBox({
fieldLabel: 'State',
hiddenName:'state',
store: new Ext.data.ArrayStore({
fields: ['abbr', 'state'],
data : myData // from states.js
}),
valueField:'abbr',
displayField:'state',
typeAhead: true,
mode: 'local',
triggerAction: 'all',
emptyText:'Select a state...',
selectOnFocus:true,
width:190
});
//The text field for the First Name
var demarcheField = new Ext.form.TextField({
fieldLabel : 'Démarche',
allowBlank:false,
id : 'demarche'
});
//Button to show the MessageBox
var showMessageBoxBouton = new Ext.Button({
text:'Say Hello',
handler:showMessageBox //The function that will be called when the button is clicked
});
//The form that will contain all our components
var myForm = new Ext.FormPanel({
labelWidth: 115,
frame:true,
title: 'Personal informations',
bodyStyle:'padding:5px 5px 0',
width: 900,
autoScroll:true,
layout:'column',
items: [{
items:[
familyNameTextField
]
},
{
items:[firstNameTextField]
},
{
items:[demarcheField]
},
{
items:[showMessageBoxBouton]
}
]
});