ckeditor5-elements / ElementOrPositionButtonViewOptions
Interface: ElementOrPositionButtonViewOptions
The options of ElementOrPositionButtonView.
Properties
target?
ts
target?: ElementOrPositionTarget;The position or element the button acts on, or a function that returns it, e.g. the element of a floating toolbar, which changes as the selection moves. The function is called whenever the button updates or is clicked; when it returns null, the button is disabled. Without a target, the button follows the command state for the selection and executes the command for the selection.
withText?
ts
withText?: boolean;Whether the command title is rendered next to the icon. When it is, there is no tooltip. Defaults to false.