-
31 Jan 2013 1:54 AM #1
Unanswered: extjs button menu show on click instead of hover
Unanswered: extjs button menu show on click instead of hover
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
Code:{ 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', }, ], }, ], }Last edited by loeischandra; 31 Jan 2013 at 2:07 AM. Reason: adding source code
-
1 Feb 2013 1:54 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,683
- Vote Rating
- 435
- Answers
- 3111
Try the hideOnClick config on the menu item, set it to false (defaults to true)
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
3 Feb 2013 11:45 PM #3


Reply With Quote