Class:


new (baseID, config)

Drawer is a class that creates an empty panel where the user can add
content to it. It allows the user to add more tabs as needed.

Parameters:
Name Type Description
baseID String

AThe id of the div element where the Drawer will be
attached to.

config Object

Contains the following settings:


  • width {Integer}. Width of the Drawer in pixels. Default is 400px

  • height {Integer}. Height of the Drawer in pixels. Default is 600px

  • position {Integer}. by default is located in the left side.

    • OM.control.Drawer.LEFT

    • OM.control.Drawer.RIGHT



 
Class:


new (baseID, config)

Drawer is a class that creates an empty panel where the user can add
content to it. It allows the user to add more tabs as needed.

Parameters:
Name Type Description
baseID String

AThe id of the div element where the Drawer will be
attached to.

config Object

Contains the following settings:


  • width {Integer}. Width of the Drawer in pixels. Default is 400px

  • height {Integer}. Height of the Drawer in pixels. Default is 600px

  • position {Integer}. by default is located in the left side.

    • OM.control.Drawer.LEFT

    • OM.control.Drawer.RIGHT



 
Class:


new (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