logo

/repo|v1.4.9

Class

new Toolbar(eventManager, items)toolbar.jsline 19

Class Toolbar

EXTENDS
  • UIController
PARAMETERS
NameTypeDescription

eventManager

EventManager

event manager

items

Array.<ToolbarItem> = []

toolbar items

Instance Methods

deprecatedaddButton(button, index)toolbar.jsline 225

add button

PARAMETERS
NameTypeDescription

button

Button

button instance

index

[ Number ]

location the button will be placed

deprecatedaddDivider()toolbar.jsline 262

add divider

RETURNS:
{

jQuery

} - created divider jquery element

addItem(item)toolbar.jsline 121

add toolbar item

PARAMETERS
NameTypeDescription

item

ToolbarItemstringobject

toolbar item

overridedestroy()toolbar.jsline 214

destroy instance

disableAllButton()toolbar.jsline 72

disable all toolbar button

enableAllButton()toolbar.jsline 83

enable all toolbar button

getItem(index)toolbar.jsline 104

get toolbar item at given index

PARAMETERS
NameTypeDescription

index

number

item index

RETURNS:
{

ToolbarItem

} - toolbar item at the index

getItems()toolbar.jsline 95

get toolbar items

RETURNS:
{

Array.<ToolbarItem>

} - toolbar items

indexOfItem(item)toolbar.jsline 157

get index of given item

PARAMETERS
NameTypeDescription

item

ToolbarItem

toolbar item

RETURNS:
{

number

} - index of given toolbar item

insertItem(index, item)toolbar.jsline 130

insert toolbar item

PARAMETERS
NameTypeDescription

index

number

index at given item inserted

item

ToolbarItemstringobject

toolbar item

removeAllItems()toolbar.jsline 204

remove all toolbar items

removeItem(item, destroy)toolbar.jsline 175

remove an item

PARAMETERS
NameTypeDescription

item

ToolbarItemnumber

an toolbar item or index of the item to remove

destroy

boolean = true

destroy item or not

RETURNS:
{

ToolbarItemundefined

} - removed item

setItems(items)toolbar.jsline 112

set toolbar items

PARAMETERS
NameTypeDescription

items

Array.<ToolbarItem>

toolbar items

Resizable