Roo.util.Observable Roo.ContentPanel Roo.ViewPanel
Package: | Roo |
Defined In: | Roo/ViewPanel.js. |
Class: | ViewPanel |
Extends: | Roo.ContentPanel |
Options | Defined By | |
---|---|---|
adjustments : Array
Values to add to the width/height when doing a {link fitToFrame} (default is [0, 0])
Values to add to the width/height when doing a {link fitToFrame} (default is [0, 0])
|
Roo.ContentPanel | |
autoCreate : Boolean/Object
True to auto generate the DOM element for this panel, or a {link Roo.DomHelper} config of the element to create
True to auto generate the DOM element for this panel, or a {link Roo.DomHelper} config of the element to create
|
Roo.ContentPanel | |
autoScroll : Boolean
True to scroll overflow in this panel (use with {link fitToFrame})
True to scroll overflow in this panel (use with {link fitToFrame})
|
Roo.ContentPanel | |
background : Boolean
True if the panel should not be activated when it is added (defaults to false)
True if the panel should not be activated when it is added (defaults to false)
|
Roo.ContentPanel | |
closable : Boolean
True if the panel can be closed/removed
True if the panel can be closed/removed
|
Roo.ContentPanel | |
content : String
Raw content to fill content panel with (uses setContent on construction.
Raw content to fill content panel with (uses setContent on construction.)
|
Roo.ContentPanel | |
fitContainer : Boolean
When using {link fitToFrame} and {link resizeEl}, you can also fit the parent container (defaults to false)
When using {link fitToFrame} and {link resizeEl}, you can also fit the parent container (defaults to false)
|
Roo.ContentPanel | |
fitToFrame : Boolean
True for this panel to adjust its size to fit when the region resizes (defaults to false)
True for this panel to adjust its size to fit when the region resizes (defaults to false)
|
Roo.ContentPanel | |
listeners : Object
list of events and functions to call for this object,
For example :
list of events and functions to call for this object,
For example :
|
Roo.util.Observable | |
loadOnce : Boolean
When used with {link url}, calls {link setUrl} with this value
When used with {link url}, calls {link setUrl} with this value
|
Roo.ContentPanel | |
params : String/Object
When used with {link url}, calls {link setUrl} with this value
When used with {link url}, calls {link setUrl} with this value
|
Roo.ContentPanel | |
region : String
which region to put this panel on (when used with xtype constructors)
which region to put this panel on (when used with xtype constructors)
Possible Values: center, north, south, east, west |
Roo.ContentPanel | |
resizeEl : String/HTMLElement/Element
An element to resize if {link fitToFrame} is true (instead of this panel's element)
An element to resize if {link fitToFrame} is true (instead of this panel's element)
|
Roo.ContentPanel | |
title : String
The title for this panel
The title for this panel
|
Roo.ContentPanel | |
toolbar : Toolbar
A toolbar for this panel
A toolbar for this panel
|
Roo.ContentPanel | |
url : String
Calls {link setUrl} with this value
Calls {link setUrl} with this value
|
Roo.ContentPanel |
Method | Defined By | |
---|---|---|
Create a new Roo.ViewPanel
Create a new Roo.ViewPanel
|
||
addEvents
(Object object)
Used to define events on this Observable
Used to define events on this Observable
|
Roo.util.Observable | |
Appends an event handler to this component
Appends an event handler to this component
|
Roo.util.Observable | |
addxtype
(Object cfg)
Adds a xtype elements to the panel - currently only supports Forms, View, JsonView.
Adds a xtype elements to the panel - currently only supports Forms, View, JsonView.
|
Roo.ContentPanel | |
destroy
()
Destroys this panel
Destroys this panel
|
Roo.ContentPanel | |
Fires the specified event with the passed parameters (minus the event name).
|
Roo.util.Observable | |
getEl
()
:
Roo.Element
Returns this panel's element - used by regiosn to add.
Returns this panel's element - used by regiosn to add.
|
Roo.ContentPanel | |
getGrid
()
:
Roo.grid.Grid
Returns the grid for this panel
Returns the grid for this panel
|
Roo.ViewPanel | |
getId
()
:
String
Returns this panel's id
Returns this panel's id
|
Roo.ContentPanel | |
getTitle
()
:
String
Returns this panel's title
Returns this panel's title
|
Roo.ContentPanel | |
getToolbar
()
:
Roo.Toolbar
Returns the toolbar for this Panel if one was configured.
Returns the toolbar for this Panel if one was configured.
|
Roo.ContentPanel | |
getUpdateManager
()
:
Roo.UpdateManager
Get the {link Roo.UpdateManager} for this panel.
Get the {link Roo.UpdateManager} for this panel. Enables you to perform Ajax updates.
|
Roo.ContentPanel | |
Roo.util.Observable | ||
isClosable
()
:
Boolean
Returns true is this panel was configured to be closable
Returns true is this panel was configured to be closable
|
Roo.ContentPanel | |
load
(Object/String/Function url, String/Object params, Function callback, Boolean discardUrl)
:
Roo.ContentPanel
Loads this content panel immediately with content from XHR.
Loads this content panel immediately with content from XHR. Note: to delay loading until the panel is activated, use {link setUrl}.
|
Roo.ContentPanel | |
Appends an event handler to this element (shorthand for addListener)
Appends an event handler to this element (shorthand for addListener)
|
Roo.util.Observable | |
purgeListeners
()
Removes all listeners for this object
Removes all listeners for this object
|
Roo.util.Observable | |
refresh
()
Force a content refresh from the URL specified in the {link setUrl} method.
Force a content refresh from the URL specified in the {link setUrl} method.
Will fail silently if the {link setUrl} method has not been called. This does not activate the panel, just updates its content. |
Roo.ContentPanel | |
Roo.util.Observable | ||
Roo.ContentPanel | ||
setTitle
(String title)
Set this panel's title
Set this panel's title
|
Roo.ContentPanel | |
Set a URL to be used to load the content for this panel.
Set a URL to be used to load the content for this panel. When this panel is activated, the content will be loaded from that URL.
|
Roo.ContentPanel | |
Roo.util.Observable |
Event | Defined By | |
---|---|---|
activate (Roo.ContentPanel this)
Fires when this panel is activated.
Fires when this panel is activated.
|
Roo.ContentPanel | |
deactivate (Roo.ContentPanel this)
Fires when this panel is activated.
Fires when this panel is activated.
|
Roo.ContentPanel | |
render (Roo.ContentPanel this)
Fires when this tab is created
Fires when this tab is created
|
Roo.ContentPanel | |
Fires when this panel is resized if fitToFrame is true.
Fires when this panel is resized if fitToFrame is true.
|
Roo.ContentPanel |