PDA

View Full Version : Please Help!! Menu Item in the header



JeganK
17 Dec 2010, 2:58 AM
I need to show menu on click of gear button in the header (from tools).

Please help me on this.

Thanks,
Santhosh

JeganK
17 Dec 2010, 3:06 AM
I want to show menu from Tools button.

Please help

Thanks,
Jegan

Mjollnir26
17 Dec 2010, 4:02 AM
There u go


{
id:'myTool',
qtip: 'Some tip',
handler: function(event, toolEl, panel)
{
new Ext.menu.Menu( { items: [ {text:'foo', handler:function() {alert('bar');}}] } ).showAt( Ext.fly(toolEl).getXY() );

}
},

JeganK
17 Dec 2010, 4:15 AM
Thanks Mjollnir26 !!!
It works fine....

Animal
17 Dec 2010, 4:36 AM
Well, kind of.

But you don't really want a new Menu every time you click the tool.

Animal
17 Dec 2010, 4:39 AM
Merged your multiple threads that you splattered randomly across the forum.