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

ParameterTypeDescription
iconIconNameThe icon name to be used. See addIcon()
titlestringThe title to be displayed in the tooltip.
callback(evt: MouseEvent) โ‡’ anyThe click callback.

Returns:

HTMLElement