PDA

View Full Version : Treepanel contextmenu with submenu



sseema
22 Jan 2015, 3:11 AM
Hi,

I am trying to display contextmenu when i do rightclick on treenode in treepanel, it is working fine and then when i mouseover on menu item i need to show submenu.

Please give me an idea. How can I show sub menu.

I appreciate any help
Thank you

lumberjack
26 Jan 2015, 8:25 AM
You can specify a sub-menu by providing one of the items with a menu config.



var menu = new Ext.menu.Menu({
items: [{
text: 'Option 1'
}, {
text: 'Sub-Menu',
menu: [{
text: 'Sub-Option 1'
}, {
text: 'Sub-Option 2'
}]
}]
});


Regards,
Brian

h4b