RedDokia API Reference / RedDokiaTabContextMenuItem
Interface: RedDokiaTabContextMenuItem
Custom menu item rendered in the right-click tab context menu via tabContextMenu.
Properties
| Property | Type | Description |
|---|---|---|
action | () => void | Callback executed when the user clicks this menu item. |
danger? | boolean | Styles the menu item in destructive/danger red when true. |
disabled? | boolean | Disables the menu item and prevents clicking when true. |
dividerBefore? | boolean | Renders a horizontal separator line immediately above this item when true. |
icon? | RedDokiaIconValue | Optional leading icon for the menu item. |
id | string | Unique identifier of the context menu item. |
label | string | Display label of the menu action. |
shortcut? | string | Optional shortcut hint rendered on the right side of the menu item. |