Phials developer documentation
User guide
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

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)