oscar.Gui.CollapsiblePanel

A user interface widget that contains a header with a collapsible content panel.

Summary
oscar.Gui.CollapsiblePanelA user interface widget that contains a header with a collapsible content panel.
Properties
collapsed
title
panel
container
contentPaneReference to the content pane.
headerPanelReference to the header panel.
css
Constructor
oscar.Gui.CollapsiblePanel
Functions
createHeaderPanelCreates the header panel
setTitle
getPanelReturns the panel reference
getContentPaneReturns the contentPane reference
appendContent
Constants
CLASS_NAME - oscar.Gui.CollapsiblePanel

Properties

collapsed

BooleanWhether the content panel is open or closed during initialization
Defaultfalse

title

StringThe value of the header

panel

HTMLElementThe div element for the object

container

HTMLElementReference to the container div

contentPane

Reference to the content pane.

headerPanel

Reference to the header panel.

css

ObjectContains the names of the css class references.

Constructor

oscar.Gui.CollapsiblePanel

Parameters: containerthe div container for this CollapsiblePanel
options{Object} An optional object whose properties will be set on this instance.

Functions

createHeaderPanel

createHeaderPanel : function()

Creates the header panel

setTitle

setTitle : function(title)

Parameters

title<String> The title of the panel

getPanel

getPanel : function()

Returns the panel reference

getContentPane

getContentPane : function()

Returns the contentPane reference

appendContent

appendContent : function(node)

Parameters

node<HTMLElement> - Adds content to the content pane.

Constants

CLASS_NAME - oscar.Gui.CollapsiblePanel

createHeaderPanel : function()
Creates the header panel
setTitle : function(title)
getPanel : function()
Returns the panel reference
getContentPane : function()
Returns the contentPane reference
appendContent : function(node)