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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Try the hideOnClick config on the menu item, set it to false (defaults to true)
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •