Results 1 to 3 of 3

Thread: Collapsed panel - Disabling the expansion button

  1. #1
    Ext JS Premium Member
    Join Date
    May 2011
    Posts
    28
    Answers
    1
    Vote Rating
    0
      0  

    Default 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
    196
    Answers
    1
    Vote Rating
    7
      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
      0  

    Default

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

Tags for this Thread

Posting Permissions

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