The plugin that is embedded as a separate tab in the file info panel.
Interface: IInfoPanelPlugin.
Name | Description | Type | Example |
infoPanelItems | Stores a collection of elements where the keys are the key parameters from the InfoPanelItem objects. A list for embedding into the info panel is generated based on this collection. | collection of IInfoPanelItem |
addInfoPanelItem - add a new info panel item.
Name | Description | Type | Example |
infoPanelItem | Defines an info panel item. | IInfoPanelItem |
getInfoPanelItems - get all the info panel items.
updateInfoPanelItem - update the info panel item.
Name | Description | Type | Example |
infoPanelItem | Defines a new info panel item. | IInfoPanelItem |
import {IInfoPanelPlugin, IInfoPanelItem} from "@onlyoffice/docspace-plugin-sdk"; class Plugin implements IInfoPanelPlugin { infoPanelItems: Map<string, IInfoPanelItem> = new Map(); addInfoPanelItem = (item: IInfoPanelItem): void => { this.infoPanelItems.set(item.key, item); }; getInfoPanelItems = (): Map<string, IInfoPanelItem> => { return this.infoPanelItems; }; updateInfoPanelItem = (item: IInfoPanelItem): void => { this.infoPanelItems.set(item.key, item); }; }