PopupContextMenuProps Interface

Properties for PopupContextMenu component

Extends

Properties

Name Type Description
animate boolean | undefined Indicates whether to use animation for open/close (defaults to true)  
ariaLabel string | undefined accessibility label  
autoflip boolean | undefined Whether menu flips directions based on screen edge.  
children ReactNode | undefined ContextMenu items  
edgeLimit boolean | undefined Whether menu hugs screen edge when autoflip is off.  
hotkeySelect boolean | undefined Whether Hotkey press selects item, or just highlights item.  
isOpen boolean Indicates whether the popup is shown or not (defaults to false)  
left number | undefined Left position (absolute positioning - defaults to 0)  
offset number | undefined Offset from the parent (defaults to 4)  
onClose () => void | undefined    
onEnter () => void | undefined    
onEsc (event: KeyboardEvent<Element>) => void | undefined    
onOpen () => void | undefined    
onOutsideClick (e: MouseEvent) => void | undefined    
onSelect (event: MouseEvent<Element, MouseEvent>) => void | undefined    
position RelativePosition | undefined Direction (relative to the target) to which the popup is expanded (defaults to Bottom)  
selectedIndex number | undefined starting menu item selected index Default: -1  
target "null" | HTMLElement Target element to position popup  
top number | undefined Top position (absolute positioning - defaults to 0)  

Inherited properties

Name Type Inherited from Description
className string | undefined CommonProps Custom CSS class name
itemId string | undefined CommonProps Optional unique identifier for item.
style CSSProperties | undefined CommonProps Custom CSS style properties

Defined in

Last Updated: 13 May, 2024