logo

/repo|v2.5.0

Class

new Toolbar(eventManager, items)toolbar.jsline 18

Class Toolbar

EXTENDS
  • UIController
PARAMETERS
NameTypeDescription

eventManager

EventManager

event manager

items

Array.<ToolbarItem> = []

toolbar items

Instance Methods

addItem(item)toolbar.jsline 116

add toolbar item

PARAMETERS
NameTypeDescription

item

ToolbarItemstringobject

toolbar item

overridedestroy()toolbar.jsline 212

destroy instance

disableAllButton()toolbar.jsline 67

disable all toolbar button

enableAllButton()toolbar.jsline 78

enable all toolbar button

getItem(index)toolbar.jsline 99

get toolbar item at given index

PARAMETERS
NameTypeDescription

index

number

item index

RETURNS:
{

ToolbarItem

} - toolbar item at the index

getItems()toolbar.jsline 90

get toolbar items

RETURNS:
{

Array.<ToolbarItem>

} - toolbar items

indexOfItem(item)toolbar.jsline 153

get index of given item

PARAMETERS
NameTypeDescription

item

ToolbarItem

toolbar item

RETURNS:
{

number

} - index of given toolbar item

insertItem(index, item)toolbar.jsline 125

insert toolbar item

PARAMETERS
NameTypeDescription

index

number

index at given item inserted

item

ToolbarItemstringobject

toolbar item

removeAllItems()toolbar.jsline 202

remove all toolbar items

removeItem(item, destroy)toolbar.jsline 173

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 107

set toolbar items

PARAMETERS
NameTypeDescription

items

Array.<ToolbarItem>

toolbar items

Resizable