new Drawer(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 | 
| config | Object | Contains the following settings: 
 | 
Methods
- 
    addTab(config)
- 
    
    Create and add tab/content to the Drawer Parameters:Name Type Description configObject Settings for the new panel. 
 An OM.control.DrawerPanel is created with the given config.Returns:- Type
- void
 
- 
    attachTab(newPanel)
- 
    
    Attach a tab/content pair to the Drawer Parameters:Name Type Description newPanelOM.control.DrawerPanel The drawer panel to be added Returns:- Type
- void
 
- 
    hideDrawer()
- 
    
    Display the drawer when the user clicks in the drawer icon. Returns:- Type
- void
 
- 
    isVisible()
- 
    
    Used to check if the drawer is visible or not. Returns:true if the drawer is visible, false otherwise. - Type
- Boolean
 
- 
    moveTabsToLeft()
- 
    
    Scroll to the left across to the tab bar Returns:- Type
- void
 
- 
    moveTabsToRight()
- 
    
    Scroll to the right across to the tab bar Returns:- Type
- void
 
- 
    setPosition(dir)
- 
    
    Set the position of the drawer in the right or left side of the parent div Parameters:Name Type Description dirInteger The position where the drawer will be placed. Returns:- Type
- void
 
- 
    showDrawer()
- 
    
    Display the drawer when the user clicks in the drawer icon. 
- 
    updateScrollButtons()
- 
    
    Scroll to the right across to the tab bar Returns:- Type
- void