PDA

View Full Version : show toolbar menu



Drake
2 Apr 2011, 7:59 AM
Hey,
I have a toolbar with a menu in a panel:

new Ext.Toolbar({
id: 'tool',
items: [{
id: 'menue',
xtype:'tbbutton',
text:'menu',
menu: [{
text: '',
id:'show',
scope:this,
iconCls: 'show',
handler: function() {show();}
},{
text: 'Clear',
id:'clear',
iconCls: 'clear',
handler: function() {clear();}
},{
text: 'Download',
id:'download',
iconCls: 'download',
handler: function(){
download();
}
}]
}
]
});
I would like to show the open (uncollapsed) menu all time - until I decide to collapse it.
I was trying showMenu() which actually works fine when I load my page, but as soon as the focus is not on the menu anymore (as soon as I click somewhere else), it collapses.
Is there a way to show the menu all time, until I say hide menu?

Thanks!

Drake
4 Apr 2011, 11:44 AM
is there no way to do that?