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 boolean | undefined Omit Whether menu flips directions based on screen edge.
badgeType BadgeType | undefined Omit Badge to be overlaid on the item.
direction ContextMenuDirection | undefined Omit Which direction the menu opens.
disabled boolean | ConditionalBooleanValue Omit Disables any onSelect calls, hover/keyboard highlighting, and grays item.
edgeLimit boolean | undefined Omit Whether menu hugs screen edge when autoflip is off.
floating boolean | undefined Omit whether menu floats on the viewport, or the page.
hidden boolean | ConditionalBooleanValue Omit Indicates whether the item is visible or hidden.
hideIconContainer boolean | undefined Omit Hide the icon container.
hotkeySelect boolean | undefined Omit Whether Hotkey press selects item, or just highlights item.
icon IconSpec | undefined Omit Icon to display in the left margin.
iconRight IconSpec | undefined Omit Icon to display in the right margin.
isSelected boolean | undefined Omit  
itemId string | undefined CommonProps Optional unique identifier for item.
onEsc (data: any) => any | undefined Omit  
onOutsideClick (event: MouseEvent) => any | undefined Omit  
onSelect (event: any) => any | undefined Omit  
opened boolean Omit Whether ContextMenu is currently opened.
selectedIndex number | undefined Omit starting menu item selected index Default: -1

Defined in

Last Updated: 07 May, 2024