Extends
Methods
-
close()
-
Closes the Toolbar
- Inherited From:
- Source:
- ui/ui.Toolbar.js
-
destroy()
-
Destroys the Toolbar, unbind all events and associated UI elements
- Inherited From:
- Source:
- ui/ui.Toolbar.js
-
disable()
-
Disables the Toolbar (blocks possible user interaction with it)
- Inherited From:
- Source:
- ui/ui.Toolbar.js
-
enable()
-
Enables the Toolbar (allow user interaction with it)
- Inherited From:
- Source:
- ui/ui.Toolbar.js
-
open(editable)
-
Opens the Toolbar on the passed Editable; this will call first Granite.author.ui.Toolbar#render and then Granite.author.ui.Toolbar#position
Parameters:
Name Type Description editable
Granite.author.Editable the source Editable
- Inherited From:
- Source:
- ui/ui.Toolbar.js
-
position(editable)
-
Position the Toolbar on the passed Editable
Parameters:
Name Type Description editable
Granite.author.Editable the source Editable
- Inherited From:
- Source:
- ui/ui.Toolbar.js
Returns:
- the current Toolbar
-
registerAction(name, action, overrideAction)
-
Registering of a new custom action.
Parameters:
Name Type Description name
string name of custom action
action
object Configuration of action
overrideAction
boolean whether the action, if already registered needs to be overridden
- Overrides:
- Source:
- edit/edit.Toolbar.js
-
render(editable)
-
Renders the Toolbar and appends the buttons associated with the actions contained in the current configuration
Parameters:
Name Type Description editable
Granite.author.Editable the source Editable
- Inherited From:
- Overrides:
- Source:
- ui/ui.Toolbar.js
Returns:
- the current Toolbar
-
reposition()
-
Repositions the Toolbar on its current underlying Editable (if existing)
- Inherited From:
- Source:
- ui/ui.Toolbar.js