當我與一列布置工作,我看不到我的labelFields 我的字段是的cols,但沒有標籤EXTJS,應用佈局問題時
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]
}
]
});
Thnx哥們兒!它的工作:) – 2010-08-13 08:26:33