ContextSubMenuProps Interface

Properties for the ContextSubMenu component

Extends

Properties

Name Type Description
label string | ReactElement<any, string | JSXElementConstructor<any>> 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  
itemId undefined | string CommonProps Optional unique identifier for item.
onEsc undefined | (data: any) => any Omit  
onOutsideClick undefined | (event: MouseEvent) => any Omit  
onSelect undefined | (event: any) => any Omit  
opened boolean Omit Whether ContextMenu is currently opened.
selectedIndex undefined | number Omit starting menu item selected index Default: -1

Defined in

Last Updated: 21 March, 2024