The plugin that is embedded in the profile menu.
Interface: IProfileMenuPlugin.
Name | Description | Type | Example |
profileMenuItems | Stores a collection of elements where the keys are the key parameters from the ProfileMenuItem objects. A list for embedding into the profile menu is generated based on this collection. | collection of IProfileMenuItem |
addProfileMenuItem - add a new profile menu item.
Name | Description | Type | Example |
profileMenuItems | Defines a profile menu item. | IProfileMenuItem |
getProfileMenuItems - get all the profile menu items.
updateProfileMenuItem - update the profile menu item.
Name | Description | Type | Example |
profileMenuItems | Defines a new profile menu item. | IProfileMenuItem |
import {IProfileMenuPlugin, IProfileMenuItem} from "@onlyoffice/docspace-plugin-sdk"; class Plugin implements IProfileMenuPlugin{ profileMenuItems: Map<string, IProfileMenuItem> = new Map(); addProfileMenuItem = (item: IProfileMenuItem): void => { this.profileMenuItems.set(item.key, item); }; getProfileMenuItems = (): Map<string, IProfileMenuItem> => { return this.profileMenuItems; }; updateProfileMenuItem = (item: IProfileMenuItem): void => { this.profileMenuItems.set(item.key, item); }; }