TCustomContextMenuActions
Custom context menu actions grouped by the entity type they apply to. Passed via TCustomActionsConfig.contextMenu.
type TCustomContextMenuActions = object;
Example
const contextMenu: TCustomContextMenuActions = {
file: [{ key: "export", label: "Export to CRM" }],
folder: [{ key: "share", label: "Share folder" }],
room: [{ key: "unlink", label: "Unlink from deal", requireSecurity: ["EditRoom"] }],
};
await instance.setCustomActions({ contextMenu });
Properties
| Property | Type | Description |
|---|---|---|
file | TCustomContextMenuAction[] | Custom actions for file context menus. |
folder | TCustomContextMenuAction[] | Custom actions for folder context menus. |
room | TCustomContextMenuAction[] | Custom actions for room context menus. Available in SDKMode.Manager. |