ContextMenuEntry#
Type alias ContextMenuEntry
Context Menu Entry: {
command?: ((nodeID, pointerInfo) => void);
condition: ((nodeID, pointerInfo) => boolean);
description?: string;
highlight?: ((nodeID, pointerInfo) => void);
iconID?: string;
id?: string;
label?: string;
subEntries?: ContextMenuEntry[];
}
command?: ((nodeID, pointerInfo) => void);
condition: ((nodeID, pointerInfo) => boolean);
description?: string;
highlight?: ((nodeID, pointerInfo) => void);
iconID?: string;
id?: string;
label?: string;
subEntries?: ContextMenuEntry[];
}
Type declaration
-
Optionalcommand?: ((nodeID, pointerInfo) => void)-
- (nodeID, pointerInfo): void
-
Parameters
-
nodeID: number
-
pointerInfo: PointerInfo
Returns void
-
-
-
condition: ((nodeID, pointerInfo) => boolean)
-
- (nodeID, pointerInfo): boolean
-
Parameters
-
nodeID: number
-
pointerInfo: PointerInfo
Returns boolean
-
-
-
Optionaldescription?: string -
Optionalhighlight?: ((nodeID, pointerInfo) => void)-
- (nodeID, pointerInfo): void
-
Parameters
-
nodeID: number
-
pointerInfo: PointerInfo
Returns void
-
-
-
OptionaliconID?: string -
Optionalid?: string -
Optionallabel?: string -
OptionalsubEntries?: 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.