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
| Parameter | Type |
|---|---|
locale | Locale | undefined |
command | ElementCommand |
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.