ContextMenuEntry# webVis API Reference ContextMenuEntry Type alias ContextMenuEntry ContextMenuEntry: { command?: ((nodeID: number, clickResult: IClickResult) => void); condition: ((nodeID: number, clickResult: IClickResult) => boolean); description?: string; highlight?: ((nodeID: number, clickResult: IClickResult) => void); iconID?: string; id?: string; label?: string; subEntries?: ContextMenuEntry[] } Defines the properties of an entry of a context menu. Type declaration Optional command?: ((nodeID: number, clickResult: IClickResult) => void) (nodeID: number, clickResult: IClickResult): void Parameters nodeID: number clickResult: IClickResult Returns void condition: ((nodeID: number, clickResult: IClickResult) => boolean) (nodeID: number, clickResult: IClickResult): boolean Parameters nodeID: number clickResult: IClickResult Returns boolean Optional description?: string Optional highlight?: ((nodeID: number, clickResult: IClickResult) => void) (nodeID: number, clickResult: IClickResult): void Parameters nodeID: number clickResult: IClickResult Returns void Optional iconID?: string Optional id?: string Optional label?: string Optional subEntries?: ContextMenuEntry[] Did you find this page useful? Please give it a rating: ★ ★ ★ ★ ★ Thank you for rating this page! Any issues or feedback? What kind of problem would you like to report? This page needs code samples Code samples do not work Information is missing Please tell us more about what's wrong: Information is incorrect Please tell us more about what's wrong: Information is unclear or confusing Please tell us more about what's wrong: The page is rendered incorrectly (styling/CSS) Give Feedback Please tell us more about what's wrong: Name E-Mail Problem (required)
Defines the properties of an entry of a context menu.