Results 1 to 3 of 3

Thread: extjs button menu show on click instead of hover

  1. #1
    Sencha User
    Join Date
    Sep 2012
    Posts
    7
    Vote Rating
    0
      0  

    Default 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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,029
    Answers
    3976
    Vote Rating
    1367
      0  

    Default

    Try the hideOnClick config on the menu item, set it to false (defaults to true)
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Sep 2012
    Posts
    7
    Vote Rating
    0
      0  

    Default

    Still did not work...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •