GlobalContextMenuProps Interface

Properties for the GlobalContextMenu component



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

Inherited properties

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

Defined in

Last Updated: 20 September, 2019