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
-
Optional
command?: ((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
-
-
-
Optional
description?: string -
Optional
highlight?: ((nodeID, pointerInfo) => void)-
- (nodeID, pointerInfo): void
-
Parameters
-
nodeID: number
-
pointerInfo: PointerInfo
Returns void
-
-
-
Optional
iconID?: string -
Optional
id?: string -
Optional
label?: string -
Optional
subEntries?: ContextMenuEntry[]
Defines the properties of an entry of a context menu.