Results 1 to 3 of 3

Thread: modern kit 6.6 : listener on a panel header

  1. #1
    Sencha Premium User
    Join Date
    Jun 2018
    Posts
    16
    Vote Rating
    0
      0  

    Default Answered: modern kit 6.6 : listener on a panel header

    Hi all,
    Note that it's for modern kit (v6.6)

    I have a collapsible panel. I would like to put a listener on the header to collapse()/expand() when clicked (not only on the icon tool)

    PHP Code:
    Ext.define('App.view.products.Products', {
        
    extend'Ext.Container',
        
    alias'widget.products',

        
    items: [
            {
               
    xtype'panel',
                
                
    bordertrue,
                
    width250,
                
    maxWidth250,
                
                
    collapsible: {
                    
    collapsedtrue,
                    
    direction'left',
                    
    animCollapse10,
                    
    useDrawerfalse,
                    
    tool: {
                        
    iconCls'x-fa fa-search'
                    
    },
      
                },
            }
    ]
    }); 
    I tried a lot of things but....

    So I need Help
    Thank you

  2. You can bind click event on header's el once header is initialized.
    Find the code in below fiddle:

    https://fiddle.sencha.com/#view/editor&fiddle/2ng8

    Hope that help...

  3. #2
    Sencha User
    Join Date
    Oct 2018
    Location
    Bengalore
    Posts
    15
    Answers
    4
    Vote Rating
    4
      0  

    Default

    You can bind click event on header's el once header is initialized.
    Find the code in below fiddle:

    https://fiddle.sencha.com/#view/editor&fiddle/2ng8

    Hope that help...

  4. #3
    Sencha Premium User
    Join Date
    Jun 2018
    Posts
    16
    Vote Rating
    0
      0  

    Default

    Thank you a lot !!!

Similar Threads

  1. Replies: 8
    Last Post: 24 Oct 2018, 4:46 AM
  2. Modern Panel should require panel Header
    By LesJ in forum Ext 6: Bugs
    Replies: 3
    Last Post: 16 Aug 2017, 12:29 PM
  3. Modern Panel Header unused sortByWeight method
    By LesJ in forum Ext 6: Bugs
    Replies: 0
    Last Post: 26 Jul 2017, 11:21 AM
  4. [FIXED] ERROR WHILE REMOVING PANEL HEADER IN EXT 6.5 MODERN
    By ramcosystemsdev@gmail.com in forum Ext 6: Bugs
    Replies: 1
    Last Post: 26 Jun 2017, 5:50 PM
  5. Remove listener from grid panel's colum header
    By nk10ere in forum Ext 3.x: Help & Discussion
    Replies: 12
    Last Post: 24 Sep 2010, 7:53 AM

Posting Permissions

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