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#type
Indicates 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() → void
module:ui/toolbar/toolbarview~ToolbarBehavior#destroy
A 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 ) → void
module:ui/toolbar/toolbarview~ToolbarBehavior#render
A method called after the toolbar has been rendered. It can be used to, for example, customize the behavior of the toolbar when its
element
is available.Parameters
view : ToolbarView
An instance of the toolbar being rendered.
Returns
void