PDA

View Full Version : Input text and Button within Menu



Pravin.Pawar
3 Sep 2012, 7:11 AM
Hi,

I want to show Input text with Button within ExtJS menu control. Please let me know how can I add controls within ExtJS Menu.

Thanks, Pravin

vietits
3 Sep 2012, 6:28 PM
Try this:


Ext.onReady(function(){
Ext.create('Ext.menu.Menu', {
width: 170,
height: 170,
floating: false,
renderTo: Ext.getBody(),
items: [{
xtype: 'menucheckitem',
text: 'Option 1',
checked: true
},{
xtype: 'menucheckitem',
text: 'Option 2'
},{
xtype: 'container',
layout: 'hbox',
items: [{
xtype: 'textfield',
width: 100
},{
xtype: 'button',
text: 'Click Me'
}]
}]
});
});

Pravin.Pawar
3 Sep 2012, 8:36 PM
This will help me... thanks for yor time and help.