PDA

View Full Version : extjs button menu show on click instead of hover



loeischandra
31 Jan 2013, 1:54 AM
hello,

i want to show menu and submenu on click instead of hover,
when i click menu, it always hide automatically, i want to show submenu with clicking on that button menu first.

i get stuck searching the solution in extjs 4



{
xtype: 'panel',
region: 'west',
lbar: [
{
text: 'Employee',
menu: [
{
text: 'Master',
menu: [
{
text: 'Manager',
},

{
text: 'Marketing',
},
{
text: 'Supervisor',
},
{
text: 'Karyawan',
},
{
text: 'Kontrak',
},
],
},
{
text: 'Payroll',
},
{
text: 'Department',
},

],

},
],
}

mitchellsimoens
1 Feb 2013, 1:54 PM
Try the hideOnClick config on the menu item, set it to false (defaults to true)

loeischandra
3 Feb 2013, 11:45 PM
Still did not work... :((