Toolbar Custom Button API
API Reference vce-plugin-toolbar-custom-button
Needs toolbar-button attribute if used in vce-plugin-toolbar.
HTML Attributes API
| Name | Description | Type | Required | Default value |
|---|---|---|---|---|
button-name |
The name of the button | string | '' |
|
icon |
Icon of the button, the list of available icons are in the Design System. | string | true | |
id-attribute-name |
This attribute of the target element will return in the click event. | string | |
|
translations |
Sets the translations | object | {} |
Translation strings
{
tooltip: 'String',
}
Events
| Event | Description | Returns |
|---|---|---|
vce-plugin-toolbar-custom-button.click |
Fires on click. | |