Extends: Object
Implements: Options, Events, Jx.ContentLoader
A panel is a fundamental container object that has a content area and optional toolbars around the content area. It also has a title bar area that contains an optional label and some user controls as determined by the options passed to the constructor.
Example
Events
| close | fired when the panel is closed |
| collapse | fired when the panel is collapsed |
| expand | fired when the panel is opened |
License
Copyright © 2008, DM Solutions Group Inc.
This file is licensed under an MIT style license
Summary
| Jx.Panel | Extends: Object |
| Options | |
| id | String, an id to assign to the panel’s container |
| label | String, the title of the Jx Panel |
| height | |
| collapse | boolean, determine if the panel can be collapsed and expanded by the user. |
| collapseTooltip | the tooltip to display over the collapse button |
| collapseLabel | the label to use for the collapse menu item |
| expandLabel | the label to use for the expand menu item |
| maximizeTooltip | the tooltip to display over the maximize button |
| maximizeLabel | the label to use for the maximize menu item |
| close | boolean, determine if the panel can be closed (hidden) by the user. |
| closeTooltip | the tooltip to display over the close button |
| closeLabel | the label to use for the close menu item |
| closed | boolean, initial state of the panel (true to start the panel closed), default is false |
| hideTitle | Boolean, hide the title bar if true. |
| toolbars | array of Jx.Toolbar objects to put in the panel. |
| Constructor | |
| Jx.Panel | Initialize a new Jx.Panel instance |
| Options | |
| <Jx.Panel.Options>, <Jx.ContentLoader.Options> | |
| Functions | |
| layoutContent | the sizeChange event of the Jx.Layout that manages the outer container is intercepted and passed through this method to handle resizing of the panel contents because we need to do some calculations if the panel is collapsed and if there are toolbars to put around the content area. |
| setLabel | Set the label in the title bar of this panel |
| getLabel | Get the label of the title bar of this panel |
| finalize | Clean up the panel |
| maximize | Maximize this panel |
| setContent | set the content of this panel to some HTML |
| setContentURL | Set the content of this panel to come from some URL. |
| panelContentLoaded | When the content of the panel is loaded from a remote URL, this method is called when the ajax request returns. |
| setBusy | Set the panel as busy or not busy, which displays a loading image in the title bar. |
| toggleCollapse | sets or toggles the collapsed state of the panel. |
| close | Closes the panel (completely hiding it). |