Skip to content

ckeditor5-elements / ElementButtonView

Class: ElementButtonView ​

A button that reflects an ElementCommand of any kind, including whether it is "on", and executes it when clicked.

Extends ​

Constructors ​

Constructor ​

ts
new ElementButtonView(
   locale, 
   command, 
   options?
): ElementButtonView;

Parameters ​

ParameterType
localeLocale | undefined
commandElementCommand
options?ElementOrPositionButtonViewOptions

Returns ​

ElementButtonView

Overrides ​

ElementOrPositionButtonView.constructor

Properties ​

command ​

ts
readonly command: ElementCommand;

The command this button reflects.

Overrides ​

ElementOrPositionButtonView.command


target ​

ts
readonly target: 
  | ElementOrPositionTarget
  | undefined;

The position or element the button acts on, if any.

Inherited from ​

ElementOrPositionButtonView.target