StaticLayout (ui/toolbar)
@ckeditor/ckeditor5-ui/src/toolbar/toolbarview
A toolbar behavior that makes it static and unresponsive to the changes of the environment.
At the same time, it also makes it possible to display a toolbar with a vertical layout
using the isVertical
property.
Filtering
Properties
-
destroy : function
readonly
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.
-
render : function
readonly
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.
Methods
-
constructor( view )
Creates a new toolbar behavior instance.
The instance is created in the
constructor
of the toolbar. This is the right place to extend thetemplate
of the toolbar, define extra toolbar properties, etc.Parameters
view : ToolbarView
An instance of the toolbar that this behavior is added to.