ToolbarBehavior
A class interface defining the behavior of the ToolbarView.
Toolbar behaviors extend its look and functionality and have an impact on the element template or rendering. They can be enabled conditionally, e.g. depending on the configuration of the toolbar.
Properties
type : 'static' | 'dynamic'module:ui/toolbar/toolbarview~ToolbarBehavior#typeIndicates the type of the toolbar behavior. Dynamic toolbar can hide items that do not fit into the available space. Static toolbar does not hide items and does not respond to the changes of the viewport.
Methods
destroy() → voidmodule:ui/toolbar/toolbarview~ToolbarBehavior#destroyA method called after the toolbar has been destroyed. It allows cleaning up after the toolbar behavior, for instance, this is the right place to detach event listeners, free up references, etc.
Returns
void
render( view ) → voidmodule:ui/toolbar/toolbarview~ToolbarBehavior#renderA method called after the toolbar has been rendered. It can be used to, for example, customize the behavior of the toolbar when its
elementis available.Parameters
view : ToolbarViewAn instance of the toolbar being rendered.
Returns
void