1. #1
    Ext JS Premium Member
    Join Date
    May 2011
    Posts
    23
    Vote Rating
    0
    awhiteho is on a distinguished road

      0  

    Default Unanswered: Collapsed panel - Disabling the expansion button

    Unanswered: Collapsed panel - Disabling the expansion button


    Hi,

    I've got an app where the western region of the viewport contains search criteria. This search criteria is only utilized on certain tabs of the application.

    For the tabs where it's not used I have the panel collapsed but the expansion button if clicked will show the panel.

    Is there a way to disable the expansion button? I've tried disabling the panel but that will gray out the panel but it can still be displayed using the expansion button.

    Thanks,

    Art Whitehouse

  2. #2
    Ext JS Premium Member
    Join Date
    Dec 2010
    Location
    Hamburg, Germany
    Posts
    193
    Answers
    1
    Vote Rating
    7
    winkelmann will become famous soon enough

      0  

    Default


    You can get to the tools in a pane or window using
    Code:
    myPanel.getHeader().getTools()
    The code above gives you an array of all tools currently on your panel or window.
    http://docs.sencha.com/ext-js/4-1/#!/api/Ext.panel.Header-method-getTools

    If you only ever have a single tool button on your window you can disable it like this:
    Code:
    myPanel.getHeader().getTools()[0].setDisabled(true)
    Hope this helps :-)

  3. #3
    Sencha Premium Member
    Join Date
    Jan 2013
    Posts
    64
    Answers
    6
    Vote Rating
    5
    AssetWorks is on a distinguished road

      0  

    Default


    try the 'hideCollapseTool: true' config on those pages that you dont need it

Thread Participants: 2

Tags for this Thread