ToolbarBehavior

Api-interface icon interface

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

  • Chevron-right icon

    type : 'static' | 'dynamic'

    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

  • Chevron-right icon

    destroy() → void

    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
  • Chevron-right icon

    render( view ) → void

    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