Plugin
โบ addRibbonIcon
Plugin.addRibbonIcon() method
Adds a ribbon icon to the left bar.
Signature:
addRibbonIcon(icon: IconName, title: string, callback: (evt: MouseEvent) => any): HTMLElement;
Parameters
Parameter | Type | Description |
---|---|---|
icon | IconName | The icon name to be used. See addIcon() |
title | string | The title to be displayed in the tooltip. |
callback | (evt: MouseEvent ) โ any | The click callback. |
Returns:
HTMLElement