Phials plugin documentation
User guide
AI Disclosure: This page was generated by an LLM and may contain inaccuracies. Hand-crafted documentation will be implemented over time on the road to 1.0

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

NameTypeRequiredDescription
area"contextMenu"yes-
selectionMode"single" | "multi" | "both"noSelection mode this applies to
submenu{ … } | nullnoDefault submenu (null = root level)
dangerbooleannoShow as dangerous (red styling)
ordernumbernoOrder within section/submenu (lower = higher in menu)