-
6 Feb 2013 5:03 AM #1
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
-
6 Feb 2013 5:12 AM #2Ext JS Premium Member
- Join Date
- Dec 2010
- Location
- Hamburg, Germany
- Posts
- 179
- Vote Rating
- 1
- Answers
- 1
You can get to the tools in a pane or window using
The code above gives you an array of all tools currently on your panel or window.Code:myPanel.getHeader().getTools()
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:
Hope this helps :-)Code:myPanel.getHeader().getTools()[0].setDisabled(true)
-
6 Feb 2013 6:31 AM #3
try the 'hideCollapseTool: true' config on those pages that you dont need it


Reply With Quote