Class: DrawerPanel

OM.control. DrawerPanel


new DrawerPanel(config)

DrawerPanel is a class used to create a single tab and content divs
and add it to a parent div.

Parameters:
Name Type Description
config Object

An object containing the following options.

  • title {String}. The name that will appear in the tab and when the mouse is over the icon of the tab
  • mode {Integer}. The options are:
    • OM.control.DrawerPanel.ICON_ONLY
    • OM.control.DrawerPanel.TEXT_ONLY
    • OM.control.DrawerPanel.TEXT_AND_ICON
  • altaIcon {String}. Displays an alta font icon:
    • OM.control.DrawerPanel.ALTA_ICON_HOME
  • panelDiv {Object}. _Optional_. set the given div as content for this tab

Methods


getID()

Returns the ID generated for the tab

Returns:
Type
Integer

getPanelContent()

Returns the content panel

Returns:
Type
Object

getPanelTab()

Returns the tab object

Returns:
Type
Object

getSingleTabContainer()

Returns the div container for the tab

Returns:
Type
Object

getTabHeaderTitle()

Returns the span object that contains the title text

Returns:
Type
Object

getTitle()

Returns the tab title

Returns:
Type
String