1. #1
    Sencha User Keith Chadwick's Avatar
    Join Date
    Nov 2009
    Location
    Ottawa Canada
    Posts
    50
    Vote Rating
    0
    Keith Chadwick is on a distinguished road

      0  

    Question How can I change a panel collapsibility programatically

    How can I change a panel collapsibility programatically


    I have a basic panel which depending on the circumstances can be collapsed by the user or not. The panel is always present but depending on the page/data that is being requested I need to 'hide' the minimize/maximize icon on the right hand side of the panel header.

    I have searched for a way to do this programatically through existing panel methods but there appears to be none. Am I left with doing some css class insertions via the components methods or is there an easier way?

    Thanks in Advance
    Keith

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,508
    Vote Rating
    58
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    Hide the collapse tool so they can't click it.

  3. #3
    Sencha User Keith Chadwick's Avatar
    Join Date
    Nov 2009
    Location
    Ottawa Canada
    Posts
    50
    Vote Rating
    0
    Keith Chadwick is on a distinguished road

      0  

    Default


    Quote Originally Posted by Animal View Post
    Hide the collapse tool so they can't click it.
    Thats is what I expected. Was just wondering if there was a way to do it with an already present method within the panel component.

    Thanks for the confirmation.

  4. #4
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,508
    Vote Rating
    58
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    well, if this is a basic collapsible Panel the code is only

    Code:
    myPanel.tools.collapse.hide();
    And if it is in a border layout, then the code is

    Code:
    myPanel.tools.toggle.hide();
    So no need for a library method.

  5. #5
    Sencha User Keith Chadwick's Avatar
    Join Date
    Nov 2009
    Location
    Ottawa Canada
    Posts
    50
    Vote Rating
    0
    Keith Chadwick is on a distinguished road

      0  

    Default


    Thanks Animal I did not look into the details of that collection in the config of the panel.

    Cheers
    Keith

Thread Participants: 1