Properties

badge - Object, default = {...} // see below
Object that defineds node badge
bottomHTML - String, default = ''
Defines HTML on the bottom of the sidebar.
flat - Boolean, default = false
Indicates if sidebar is in the flat mode.
flatButton - Boolean, default = false
Indicates if flat button should be displayed.
handle - Object, default = {...} // see below
Object that defineds node handle
hasFocus - Boolean, default = false
Indicates if sidebar has keyboard focus. Read Only.
icon - String or object, default = ''
Default node icon.
keyboard - Boolean, default = true
Indicates if sidebar should listen to keyboard.
last - Object
Runtime variables
levelPadding - Number, default = 12
Defined padding level for nested nodes.
menu - Array, default = []
Context menu for the sidebar.
node_template - Object, default = {...} // see below
Node template object.
nodes - Array, default = []
Array of node objects.
parent - null
Reference to parent node. Read Only.
routeData - String, default = ''
Object with data for the route.
selected - String, default = ''
The id of the selected node. Read Only.
sidebar - Object
Reference to itself. Read Only.
skipRefresh - Boolean, default = false
Indicated if to refresh during add/remove of nodes
tabIndex - Number, default = null
Defines tabIndex for sidebar element.
toggleAlign - String, default = 'right'
Defines where expand icon is displayed.
topHTML - String, default = ''
Defines HTML on the top of the sidebar.

Common Properties

box - DOM Element, default = null
The DOM element where to render the object.
handlers - Array, default = []
Array of event handlers.
name - String, default = ''
Unique name for the object.
style - String, default = ''
Additional style for the .box where the object is rendered.