ckeditor5-elements / bindButtonToCommand
Function: bindButtonToCommand()
ts
function bindButtonToCommand(
button,
command,
__namedParameters?
): void;Makes the button reflect the command and execute it when clicked, as ElementOrPositionButtonView does. Also used for menu items, which are a different kind of button.
Parameters
| Parameter | Type |
|---|---|
button | ButtonView |
command | ElementOrPositionCommand |
__namedParameters? | ElementOrPositionButtonViewOptions |
Returns
void