Constructor
new Navigation($el)
Parameters:
Name | Type | Description |
---|---|---|
$el |
element containing the navigation |
- Source:
Members
$currentContent
Currently selected container
- Source:
_activeItem
Currently selected item in the list
- Source:
Methods
_onClickItem()
Event handler for when clicking on an item.
- Source:
_setupEvents()
Setup UI events
- Source:
getActiveContainer()
Returns the container of the currently active app.
- Source:
Returns:
app container
getActiveItem()
Returns the currently active item
- Source:
Returns:
item ID
itemExists()
Returns whether a given item exists
- Source:
setActiveItem(string, array)
Switch the currently selected item, mark it as selected and
make the content container visible, if any.
Parameters:
Name | Type | Description |
---|---|---|
string |
itemId id of the navigation item to select | |
array |
options "silent" to not trigger event |
- Source: