SubPanel Class
[subPanelPrototype description]
Constructor
SubPanel
()
Item Index
Methods
Methods
changeOrigin
-
newOrigin
Assigns a new origin to the SubPanel.
Parameters:
-
newOrigin
StringThe new origin of the SubPanel.
create
-
a
Creates a new instance of SubPanel.
Parameters:
-
a
SubPanelSettingsSettings for the SubPanel
destroy
-
speed
-
deferred
Destroys this SubPanel.
Parameters:
-
speed
NumberThe duration of the animation in milliseconds
-
deferred
DeferredThe deferred to be resolved after the SubPanel is destroyed
getAttributes
()
SubPanelSettings
Returns this SubPanel's settings object.
Returns:
This SubPanel's settings
getContainer
()
Jobject
Returns this SubPanel's container div
.
Returns:
This SubPanel's div
getOrigin
()
String
Returns the origin
of this SubPanel.
Returns:
The origin
of this SubPanel
getPanel
()
JObject
Returns the inner div
of the SubPanel
Returns:
The inner div
of the SubPanel
getPanelWidthDefault
()
Number
private
Return the default width of the SidePanel.
Returns:
The default width of the SidePanel
layoutChange
()
private
Fires an event when the layout of the page changes.
open
()
Opens the SubPanel. Sends out EventManager.GUI.SUBPANEL_CHANGE
event.
parseContent
-
data
Apply the shortening plugin to the panel data
Parameters:
-
data
JObjectContent to be shortened
Returns:
Content with after shortening long text nodes
reopen
()
Reopens the SubPanel - stops the closing animation and initiates the opening animation.
shiftTarget
-
newTarget
Shifts the SubPanel to the new node in the DOM.
Parameters:
-
newTarget
JObjectA node in the DOM to shift the SubPanel to
update
-
a
Performs an update of the content and title of the SubPanel, running appropriate animation and doOn-
/ doAfter-
functions.
Parameters:
-
a
SubPanelSettingsNew settings for the SubPanel
Properties
_animatePanelDuration
Number
private
Default duration of the SubPanel animation in milliseconds.
Default: 0.5
_destroyDeferred
Deferred
private
Holds a deferred that would destroy the panel after the closing animation completes. May be interrupted.
Default: null
_panelContentDiv
JObject
private
div
housing the content of the SubPanel, excluding its title.
Default: null
_panelTitle
JObject
private
Heading of the content in the SubPanel.
Default: null
_subPanelContentDiv
JObject
private
div
housing the content of the SubPanel, including its title.
Default: null
_visible
Boolean
private
Indicates if the SubPanel is visible at the moment. Doesn't make the panel visible or invisible, just prevents animations on the content
to run when it is set to true
.
Default: false
container
JObject
The outermost div
of the SubPanel.
Default: null
panel
JQobject
The inner div
of the SubPanel. Closing and opening animations are run on this div
.
Default: null