CursorMenuItemProps Interface

Properties for context menu items.

Extends

Properties

Name Type Description
iconRight string | ConditionalStringValue Icon to display on right side of the menu item.  
id string The id for the menu item.  
item CommandItemProps | undefined The item to execute when this item is invoked.  
submenu CursorMenuItemProps[] | undefined Nested array of item props.  

Inherited properties

Name Type Inherited from Description
applicationData any | undefined ItemProps can be used by application to store miscellaneous data.
badgeType BadgeType | undefined ItemProps Badge to be overlaid on the item.
className string | undefined ItemProps Custom CSS class name
description string | StringGetter | ConditionalStringValue ItemProps if set, it is used to explicitly set the description shown by a component.
descriptionKey string | undefined ItemProps if set, it is used to define a key that is used to look up a localized string.
icon IconSpec | undefined ItemProps abstract icon definition, used when create itemDef from abstract item (ie.
iconSpec IconSpec | undefined ItemProps CSS class name or SvgPath for icon.
isActive boolean | undefined ItemProps if set, component will be considered "active" an will display an "active stripe" - defaults to false
isDisabled boolean | ConditionalBooleanValue ItemProps if true component will be disabled - defaults to false
isHidden boolean | ConditionalBooleanValue ItemProps if true component will be hidden - defaults to false
isPressed boolean | undefined ItemProps if set, component will be considered selected but will NOT display an "active stripe" - defaults to false.
itemId string | undefined ItemProps Optional unique identifier for item.
label string | StringGetter | ConditionalStringValue ItemProps if set, it is used to explicitly set the label shown by a component.
labelKey string | undefined ItemProps if set, it is used to define a key that is used to look up a localized string.
style CSSProperties | undefined ItemProps Custom CSS style properties
tooltip string | StringGetter | ConditionalStringValue ItemProps used to explicitly set the tooltip shown by a component.
tooltipKey string | undefined ItemProps if set, it is used to define a key that is used to look up a localized string.

Defined in

Last Updated: 13 May, 2024