Toolbar

App.Toolbar. Toolbar

new Toolbar(toolbar)

See:
Parameters:
Name Type Description
toolbar Object

Settings and data for the toolbar

Methods

changeIconLabel(id, label, iconClass)

Change icon on a toolbar command/ menu

Parameters:
Name Type Description
id string

of command/ menu

label string

command/ menu label

iconClass string

icon for new command/ menu

destroy()

Cleanups event binding etc. to enable this instance to be garbage collected

getContext() → {*}

Returns:
Type
*

isVertical() → {*}

Returns:
Type
*

off(event, handler)

Remove a subscription.

Parameters:
Name Type Description
event String

Event to remove subscription from

handler function

Callback to remove

on(event, handler)

Subscribe to an event.

Parameters:
Name Type Description
event String

Event to subscribe to

handler function

Callback function

reInitTooltip()

Re initialise the tooltip

setContext(context)

Parameters:
Name Type Description
context