Class Exanpe.VerticalMenu
Represents a VerticalMenu. Can be accessed through JavaScript by its id.
Defined in: exanpe-t5-lib.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Exanpe.VerticalMenu(id, selectedId)
Constructor
|
Field Attributes | Field Name and Description |
---|---|
id of the instance
|
|
id of the selected menu item
|
Method Attributes | Method Name and Description |
---|---|
Returns the state of a menu item.
|
|
openOrCloseMenu(id)
Open or close the content of a menu item.
|
Class Detail
Exanpe.VerticalMenu(id, selectedId)
Constructor
- Parameters:
- {String} id
- the id of the menu
- {String} selectedId
- the selected item in the menu
Field Detail
id
id of the instance
selectedId
id of the selected menu item
Method Detail
{boolean}
isMenuItemSelected(id)
Returns the state of a menu item.
- Parameters:
- {String} id
- the id of the menu item to check.
- Returns:
- {boolean} true if the menu item is selected, false otherwise
openOrCloseMenu(id)
Open or close the content of a menu item.
Open the menu if menu item is selected, close it otherwise.
- Parameters:
- {String} id
- the id of the menu item.