ContextMenuProps Interface

Properties for the ContextMenu component



Name Type Description
autoflip undefined | false | true Whether menu flips directions based on screen edge.  
direction undefined | ContextMenuDirection Which direction the menu opens.  
edgeLimit undefined | false | true Whether menu hugs screen edge when autoflip is off.  
floating undefined | false | true whether menu floats on the viewport, or the page.  
hotkeySelect undefined | false | true Whether Hotkey press selects item, or just highlights item.  
onEsc undefined | (data: any) => any when Escape button is pressed  
onOutsideClick undefined | (event: MouseEvent) => any When click is registered outside of ContextMenu.  
onSelect undefined | (event: any) => any When list item or submenu is selected  
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 ClassNameProps Custom CSS class name
style undefined | React.CSSProperties CommonProps Custom CSS style properties

Defined in

Last Updated: 06 October, 2021