ContextMenuEntry¶
Type Alias ContextMenuEntry
ContextMenuEntry: {
command?: (nodeID: number, pointerInfo: PointerInfo) => void;
condition: (nodeID: number, pointerInfo: PointerInfo) => boolean;
description?: string;
highlight?: (nodeID: number, pointerInfo: PointerInfo) => void;
iconID?: string;
id?: string;
label?: string;
subEntries?: ContextMenuEntry[];
}
command?: (nodeID: number, pointerInfo: PointerInfo) => void;
condition: (nodeID: number, pointerInfo: PointerInfo) => boolean;
description?: string;
highlight?: (nodeID: number, pointerInfo: PointerInfo) => void;
iconID?: string;
id?: string;
label?: string;
subEntries?: ContextMenuEntry[];
}
Type declaration
Optionalcommand?: (nodeID: number, pointerInfo: PointerInfo) => voidcondition: (nodeID: number, pointerInfo: PointerInfo) => boolean
Optionaldescription?: stringOptionalhighlight?: (nodeID: number, pointerInfo: PointerInfo) => voidOptionaliconID?: stringOptionalid?: stringOptionallabel?: stringOptionalsubEntries?: ContextMenuEntry[]
Defines the properties of an entry of a requested context menu.
This type is only used internally by the RequestContextMenuEvent event to request a context menu from the UI. To modify the context menu, use the related functions provided by the webvisUI API.