1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    5
    Vote Rating
    0
    loeischandra is on a distinguished road

      0  

    Default 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

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,683
    Vote Rating
    435
    Answers
    3111
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    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. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    5
    Vote Rating
    0
    loeischandra is on a distinguished road

      0  

    Default


    Still did not work...