NavbarMain

The main navbar

onError

Event: Error was returned

Parameters

onClickCopyItemId

Event: Click copy item id

Parameters

onClickTab

Event: Click tab

Parameters

onClickToggleChildren

Event: Toggle children

Parameters

toggleTabButtons

Toggles the tab buttons

Parameters

isActive
Boolean

showTab

Shows a tab

Parameters

tabName
String

save

Saves the navbar state

Parameters

restore

Restores the navbar state

Parameters

reload

Reloads this view

Parameters

reload

Static version of the reload method

Parameters

addTabPane

Adds a tab pane

Parameters

route
String
settings
Object

getItemIcon

Gets the icons of an item

Parameters

item
Object
settings
Object

Returns

String
Icon name

isItemDirectory

Gets whether the item is a directory

Parameters

item
Object

Returns

Boolean
Is directory

getItemRoutingPath

Gets the routing path for an item

Parameters

item
Object
settings
Object

Returns

String
Routing path

getItemName

Gets the name of an item

Parameters

item
Object

Returns

String
Item name

highlightItem

Highlights an item

Parameters

clear

Clears all content within the navbar

Parameters

applySorting

Applies item sorting

Parameters

$pane
HTMLElement
pane
Object

applyHierarchy

Applies item hierarchy

Parameters

$pane
HTMLElement
pane
Object
queue
Array