1. #1
    Sencha User Radius-Service's Avatar
    Join Date
    Jul 2010
    Location
    Russia, Perm
    Posts
    47
    Vote Rating
    1
    Radius-Service is on a distinguished road

      0  

    Default Answered: Do not hide the menu when clicked.

    Answered: Do not hide the menu when clicked.


    Hello

    Can you please tell how to make sure that when you click on a menu item ('mAdmin'), which has a submenu ('btnCatalog'), menu (mAdmin) not to hide?

    Thanks.

    PHP Code:

        items
    :[
            {
                 
    id'mAdmin',
                 
    text 'Администрирование',
                
    menu:[{
                         
    id'mAdminUser',
                         
    text'Управление пользователями',
                         
    handlerfAdminUser,
                    },{
                         
    id'btnCatalog',
                         
    text'Системные справочники',
                        
    menu:[{
                             
    id'btnShowPermission',
                             
    text'Разрешения',
                             
    handleradminPermissions,
                        }]                            
                    }
                ]
            }
        ] 


  2. #2
    Ext JS Premium Member Asken's Avatar
    Join Date
    Feb 2010
    Location
    sweden
    Posts
    117
    Answers
    2
    Vote Rating
    0
    Asken is an unknown quantity at this point

      0  

  3. #3
    Sencha User Radius-Service's Avatar
    Join Date
    Jul 2010
    Location
    Russia, Perm
    Posts
    47
    Vote Rating
    1
    Radius-Service is on a distinguished road

      0  

    Default


    Don't working.
    Or am I doing wrong?


    PHP Code:
    Ext.create('Ext.toolbar.Toolbar', {
        
    id        'main.panel.mainMenuBar',
        
    dock    'top',
        
    height    27,
        
    items:[
            {
                
    id        'cachedCount',
                
    text    'Администрирование',
                
    ignoreParentClickstrue,
                
    menu:[{
                        
    id            'mAdminUser',
                        
    text        'Управление пользователями',
                        
    handler        fAdminUser
                    
    },{
                        
    id            'btnAdminRole',
                        
    text        'Управление правами',
                        
    handler        adminRole
                    
    },{
                        
    id            'btnCatalog',
                        
    text        'Системные справочники'
                        
    menu:[{
                            
    id            'btnShowPermission',
                            
    text        'Разрешения',
                            
    handler        adminPermission
                        
    },{
                            
    id            'btnShowGroups',
                            
    text        'Группы',
                            
    handler        adminGroups
                        
    }]                            
                    }
                ]
            }
        ]
    }); 

  4. #4
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,640
    Answers
    431
    Vote Rating
    582
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Thread Participants: 2

Tags for this Thread