Options
All
  • Public
  • Public/Protected
  • All
Menu

A toolbar is a horizontal element which contains a series of buttons from which the user can initiate actions.

The toolbar contains buttons for two types of buttons:

  • Buttons not associated with any specific mode. These are editor-wide actions that may be set by the application in which the editor instance is used.

  • Buttons specific to a mode.

Hierarchy

  • Toolbar

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private divider

divider: Element

Private modeSpan

modeSpan: Element

top

top: Element

The top DOM element of the toolbar.

Methods

addButton

  • Add one or more buttons to the toolbar.

    Parameters

    • buttons: ReadonlyArray<Button> | Button

      A single button or an array of buttons to add.

    • Default value options: AddOptions = {}

      Parameters affecting how the addition is made.

    Returns void

setModeButtons

  • setModeButtons(buttons: Button[]): void
  • Set the mode related buttons. This replaces any buttons previously set by this method.

    Parameters

    • buttons: Button[]

      The buttons to add to the toolbar.

    Returns void

Generated using TypeDoc