ContextMenuProps Interface
Properties for the ContextMenu component
Extends
Properties
Name | Type | Description | |
---|---|---|---|
autoflip | undefined | boolean | Whether menu flips directions based on screen edge. | |
children | undefined | ReactNode | Content | |
direction | undefined | ContextMenuDirection | Which direction the menu opens. | |
edgeLimit | undefined | boolean | Whether menu hugs screen edge when autoflip is off. | |
floating | undefined | boolean | whether menu floats on the viewport, or the page. | |
hotkeySelect | undefined | boolean | Whether Hotkey press selects item, or just highlights item. | |
onEsc | undefined | (data: any) => any | ||
onOutsideClick | undefined | (event: MouseEvent) => any | ||
onSelect | undefined | (event: any) => any | ||
opened | boolean | Whether ContextMenu is currently opened. | |
selectedIndex | undefined | number | starting menu item selected index Default: -1 |
Inherited properties
Name | Type | Inherited from | Description |
---|---|---|---|
className | undefined | string | CommonProps | Custom CSS class name |
itemId | undefined | string | CommonProps | Optional unique identifier for item. |
style | undefined | CSSProperties | CommonProps | Custom CSS style properties |
Defined in
Last Updated: 05 April, 2024
Found something wrong, missing, or unclear on this page?
Raise an issue in our repo.