AI Notice: Most documentation right now was auto-generated by an LLM. Handwritten documentation will be implemented over time on the road to 1.0
ContextMenuPlacementConfig
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) |