跳到主要内容

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​

PropertyTypeDescription
fileTCustomContextMenuAction[]Custom actions for file context menus.
folderTCustomContextMenuAction[]Custom actions for folder context menus.
roomTCustomContextMenuAction[]Custom actions for room context menus. Available in SDKMode.Manager.