API Reference > ui-core > ContextMenu > ContextMenuProps ContextMenuProps Interface Properties for the ContextMenu component Extends CommonProps Methods Name Description onEsc(data: any): any Optional when Escape button is pressed onOutsideClick(event: MouseEvent): any Optional When click is registered outside of ContextMenu. onSelect(event: any): any Optional When list item or submenu is selected Properties Name Type Description autoflip undefined | boolean Whether menu flips directions based on screen edge. direction undefined | ContextMenuDirection Which direction the menu opens. edgeLimit undefined | boolean Whether menu hugs screen edge when autoflip is off. floating undefined | boolean whether menu floats on the viewport, or the page. hotkeySelect undefined | boolean Whether Hotkey press selects item, or just highlights item. opened boolean Whether ContextMenu is currently opened. selectedIndex undefined | number starting menu item selected index Default: -1 Inherited properties Name Type Inherited from Description className undefined | string CommonProps Custom CSS class name style undefined | CSSProperties CommonProps Custom CSS style properties Defined in ui/core/src/ui-core/contextmenu/ContextMenu.tsx Line 22 Last Updated: 12 June, 2024