Class mindmaps.ToolBarView
Defined in: ToolBar.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Creates a new ToolBarView.
|
Method Attributes | Method Name and Description |
---|---|
addButton(button, alignFunc)
Adds a button to the toolbar with the given align function.
|
|
addButtonGroup(buttons, alignFunc)
Adds a set of buttons grouped together to the toolbar.
|
|
addMenu(menu)
Adds a menu to the toolbar.
|
|
alignLeft($el)
Adds the element to the left side of the toolbar.
|
|
alignRight($el)
Adds the element to the right side of the toolbar.
|
Method Detail
addButton(button, alignFunc)
Adds a button to the toolbar with the given align function.
- Parameters:
- {mindmaps.ToolBarButton} button
- {Function} alignFunc
addButtonGroup(buttons, alignFunc)
Adds a set of buttons grouped together to the toolbar.
- Parameters:
- {mindmaps.ToolBarButton[]} buttons
- {Function} alignFunc
addMenu(menu)
Adds a menu to the toolbar.
- Parameters:
- {mindmaps.ToolBarMenu} menu
alignLeft($el)
Adds the element to the left side of the toolbar.
- Parameters:
- {jQuery} $el
alignRight($el)
Adds the element to the right side of the toolbar.
- Parameters:
- {jQuery} $el