ContextSubMenuProps Interface

Properties for the ContextSubMenu component

Extends

Methods

Name Description
onHotKeyParsed(hotKey: string): void Optional    

Inherited methods

Name Inherited from Description
onEsc(data: any): any Optional Omit when Escape button is pressed
onHover(): any Optional Omit  
onOutsideClick(event: MouseEvent): any Optional Omit When click is registered outside of ContextMenu.
onSelect(event: any): any Optional Omit  

Properties

Name Type Description
label string | Element Text/jsx to display in the list item  

Inherited properties

Name Type Inherited from Description
autoflip undefined | boolean Omit Whether menu flips directions based on screen edge.
badgeType undefined | BadgeType Omit Badge to be overlaid on the item.
direction undefined | ContextMenuDirection Omit Which direction the menu opens.
disabled boolean | ConditionalBooleanValue Omit Disables any onSelect calls, hover/keyboard highlighting, and grays item.
edgeLimit undefined | boolean Omit Whether menu hugs screen edge when autoflip is off.
floating undefined | boolean Omit whether menu floats on the viewport, or the page.
hidden boolean | ConditionalBooleanValue Omit Indicates whether the item is visible or hidden.
hideIconContainer undefined | boolean Omit Hide the icon container.
hotkeySelect undefined | boolean Omit Whether Hotkey press selects item, or just highlights item.
icon undefined | IconSpec Omit Icon to display in the left margin.
iconRight undefined | IconSpec Omit Icon to display in the right margin.
isSelected undefined | boolean Omit  
opened boolean Omit Whether ContextMenu is currently opened.
selectedIndex undefined | number Omit starting menu item selected index Default: -1

Defined in

Last Updated: 12 June, 2024