ContextMenuPlacementConfig
Since Plugin API: 1.0.0
Context menu placement configuration.
extends CommandPlacementBase
Signature
interface ContextMenuPlacementConfig extends CommandPlacementBase { area: "contextMenu"; selectionMode?: "single" | "multi" | "both"; submenu?: { id: string; label: string; icon?: string; } | null; danger?: boolean; order?: number;}Members
| Name | Type | Required | Description |
|---|---|---|---|
area |
"contextMenu" |
yes | - |
selectionMode |
"single" | "multi" | "both" |
no | Selection mode this applies to |
submenu |
{ … } | null |
no | Default submenu (null = root level) |
danger |
boolean |
no | Show as dangerous (red styling) |
order |
number |
no | Order within section/submenu (lower = higher in menu) |