GlobalContextMenuProps Interface

Properties for the GlobalContextMenu component

Extends

Properties

Name Type Description
contextMenuComponent undefined | ComponentType<ContextMenuProps> Context menu element.  
identifier undefined | string Unique identifier, to distinguish from other GlobalContextMenu components.  
x string | number Specifies the x/horizontal position on the viewport.  
y string | number Specifies the y/vertical position on the viewport.  

Inherited properties

Name Type Inherited from Description
autoflip undefined | boolean ContextMenuProps Whether menu flips directions based on screen edge.
children undefined | ReactNode ContextMenuProps Content
className undefined | string ContextMenuProps Custom CSS class name
direction undefined | ContextMenuDirection ContextMenuProps Which direction the menu opens.
edgeLimit undefined | boolean ContextMenuProps Whether menu hugs screen edge when autoflip is off.
floating undefined | boolean ContextMenuProps whether menu floats on the viewport, or the page.
hotkeySelect undefined | boolean ContextMenuProps Whether Hotkey press selects item, or just highlights item.
itemId undefined | string ContextMenuProps Optional unique identifier for item.
onEsc undefined | (data: any) => any ContextMenuProps  
onOutsideClick undefined | (event: MouseEvent) => any ContextMenuProps  
onSelect undefined | (event: any) => any ContextMenuProps  
opened boolean ContextMenuProps Whether ContextMenu is currently opened.
selectedIndex undefined | number ContextMenuProps starting menu item selected index Default: -1
style undefined | CSSProperties ContextMenuProps Custom CSS style properties

Defined in

Last Updated: 05 April, 2024