Adds a splitbar and other (private) useful functionality to a LayoutRegion
| |
add(ContentPanel... panel) : Ext.ContentPanel |
LayoutRegion |
| Add the passed ContentPanel(s) |
| |
addListener(String eventName, Function handler, [Object options]) : void |
Observable |
| Appends an event handler to this component |
| |
collapse([Boolean skipAnim]) : void |
LayoutRegion |
| Collapses this region. |
| |
expand(Ext.EventObject e, [Boolean skipAnim]) : void |
LayoutRegion |
| Expand this region if it was previously collapsed. |
| |
fireEvent(String eventName, Object... args) : Boolean |
Observable |
| Fires the specified event with the passed parameters (minus the event name). |
| |
getActivePanel() : Ext.ContentPanel |
LayoutRegion |
| Get the active panel for this region. |
| |
getEl() : Ext.Element |
LayoutRegion |
| Returns the container element for this region. |
| |
getSplitBar() : Ext.SplitBar |
SplitLayoutRegion |
| Returns the SplitBar for this region. |
| |
getTabs() : Ext.TabPanel |
LayoutRegion |
| Returns the TabPanel component used by this region |
| |
hide() : void |
LayoutRegion |
| Hides this region. |
| |
hidePanel(Number/String/ContentPanel panel) : void |
LayoutRegion |
| Hides the tab for the specified panel. |
| |
isVisible() : Boolean |
LayoutRegion |
| Returns true if this region is currently visible. |
| |
on(String eventName, Function handler, [Object options]) : void |
Observable |
| Appends an event handler to this element (shorthand for addListener) |
| |
purgeListeners() : void |
Observable |
| Removes all listeners for this object |
| |
remove(Number/String/ContentPanel panel, Boolean preservePanel) : Ext.ContentPanel |
LayoutRegion |
| Removes the specified panel. If preservePanel is not true (either here or in the config), the panel is destroyed. |
| |
removeListener(String eventName, Function handler, [Object scope]) : void |
Observable |
| Removes a listener |
| |
setCollapsedTitle() : void |
LayoutRegion |
| Updates the collapsed text for north/south regions (used with collapsedTitle config option) |
| |
show() : void |
LayoutRegion |
| Shows this region if it was previously hidden. |
| |
showPanel(Number/String/ContentPanel panelId) : Ext.ContentPanel |
LayoutRegion |
| Show the specified panel. |
| |
un(String eventName, Function handler, [Object scope]) : void |
Observable |
| Removes a listener (shorthand for removeListener) |
| |
unhidePanel(Number/String/ContentPanel panel) : void |
LayoutRegion |
| Unhides the tab for a previously hidden panel. |
This class has no public events.
bodyEl
public Ext.Element bodyEl
This regions body element
collapsedEl
public Ext.Element collapsedEl
This regions collapsed element
el
public Ext.Element el
This regions container element
split
public Ext.SplitBar split
The SplitBar for this region
This property is defined by SplitLayoutRegion.
titleEl
public Ext.Element titleEl
This regions title element
titleTextEl
public HTMLElement titleTextEl
This regions title text element
alwaysShowTabs
alwaysShowTabs : Boolean
True to always display tabs even when only 1 panel (defaults to false)
animate
animate : Boolean
True to animate expand/collapse (defaults to false)
autoHide
autoHide : Boolean
False to disable disable autoHide when the mouse leaves the "floated" region (defaults to true)
autoScroll
autoScroll : Boolean
True to enable overflow scrolling (defaults to false)
closeOnTab
closeOnTab : Boolean
True to place the close icon on the tabs instead of the region titlebar (defaults to false)
cmargins
cmargins : Object
Margins for the element when collapsed (defaults to: north/south {top: 2, left: 0, right:0, bottom: 2} or east/west {top: 0, left: 2, right:2, bottom: 0})
collapsedTitle
collapsedTitle : String
Optional string message to display in the collapsed block of a north or south region
collapsible
collapsible : Boolean
False to disable collapsing (defaults to true)
duration
duration : Float
The duration of the expand/collapse animation in seconds
floatable
floatable : Boolean
False to disable floating (defaults to true)
hideTabs
hideTabs : Boolean
True to hide the tab strip (defaults to false)
margins
margins : Object
Margins for the element (defaults to {top: 0, left: 0, right:0, bottom: 0})
minTabWidth
minTabWidth : Number
The minimum tab width (defaults to 40)
preferredTabWidth
preferredTabWidth : Number
The preferred tab width (defaults to 150)
preservePanels
preservePanels : Boolean
True to preserve removed panels so they can be readded later (defaults to false)
resizeTabs
resizeTabs : Boolean
True to enable automatic tab resizing. This will resize the tabs so they are all the same size and fit within the space available, similar to FireFox 1.5 tabs (defaults to false)
slideDuration
slideDuration : Float
The duration of the slide out/in when collapsed in seconds
tabPosition
tabPosition : String
'top' or 'bottom' (defaults to 'bottom')
title
title : String
The title for the region (overrides panel titles)
titlebar
titlebar : Boolean
True to display a title bar (defaults to true)