1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
new Ext.TabPanel({
id: 'id1',
border: false,
activeTab: 1,
labelWidth: 120,
items: [
// 1er onglet
new Ext.FormPanel({
// ......
}),
// 2eme onglet
new Ext.FormPanel({
id: 'idp1',
labelWidth: 120,
title: "Service",
defaults: {width: 350 },
border: false,
frame: true,
fileUpload: true,
width: 360,
height: 290,
autoScroll: true,
items: [
// le combobox mal affiché, se situer en 2 eme onglet
new Ext.form.ComboBox({
id: 'id_visibilite',
fieldLabel: 'Visibilité *',
name:'n_visibilite',
width: 360,
hiddenName:'n_visibilite',
store: new Ext.data.SimpleStore({
fields: ['id', 'label'],
data : [
[ '1', 'Oui' ],
[ '2', 'Non' ]
]
}),
tpl: '<tpl for="."><div class="x-combo-list-item">{label}</div></tpl>',
valueField:'id',
displayField:'label',
forceSelection : true,
mode: 'local',
triggerAction: 'all',
emptyText: translations.GEN_FORMS_CHOISISSEZ,
selectOnFocus:true,
allowBlank: false,
blankText: translations.GEN_FORMS_ERROR_CHAMPVIDE
})
//.... |
Partager