new Toolbar(eventManager, items)toolbar.jsline 19
Class Toolbar
EXTENDS
- UIController
PARAMETERS
Name Type Description eventManager
EventManager
event manager
items
Array.<ToolbarItem> = []
toolbar items
Instance Methods
deprecatedaddButton(button, index)toolbar.jsline 225
add button
PARAMETERS
Name Type Description 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
Name Type Description 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
Name Type Description 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
Name Type Description item
ToolbarItem
toolbar item
RETURNS:
{number
} - index of given toolbar item
insertItem(index, item)toolbar.jsline 130
insert toolbar item
PARAMETERS
Name Type Description 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
Name Type Description 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
Name Type Description items
Array.<ToolbarItem>
toolbar items