config: {
fullscreen: true,
title: 'Add Event',
xtype:'formpanel',
id:'p',
items: [ {
xtype: 'fieldset',
items: [
{
xtype: 'textfield',
name: 'nomEvent',
id:'nomevent',
label: 'Nom Event:'
},
{
xtype: 'datepickerfield',// It shows the datePicker in the menu and not in the main
label: 'Birthday',
name: 'birthday',
id:'debEvent',
value: new Date()
},
{
xtype: 'textfield',
name: 'lieu',
id:'loc',
label: 'Lieu:',
}
] // items
}, {
xtype: 'toolbar',
layout: {
pack: 'center'
}, // layout
ui: 'plain',
items: [{
xtype: 'button',
text: 'Submit',
ui: 'confirm',
handler: function (btn, evt) {
Ext.Msg.alert('Welcome'); //It shows the alert when in the menu and not in the main
} // handler
}
] // items (toolbar)
}
]
}
Hy, I have modified the view option 2 to this:
config: { fullscreen: true, title: 'Add Event', xtype:'formpanel', id:'p', items: [ { xtype: 'fieldset', items: [ { xtype: 'textfield', name: 'nomEvent', id:'nomevent', label: 'Nom Event:' }, { xtype: 'datepickerfield',// It shows the datePicker in the menu and not in the main label: 'Birthday', name: 'birthday', id:'debEvent', value: new Date()
Please any help??