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

SelectionProviderItem

A single action item contributed by a selection provider

Signature

interface SelectionProviderItem {
    id: string;
    label: string;
    icon?: string;
    disabled?: boolean;
    danger?: boolean;
    action: (ctx: SelectionContext) => void | Promise<void>;
}

Members

NameTypeRequiredDescription
idstringyes
labelstringyes
iconstringno
disabledbooleanno
dangerbooleanno
action(ctx: SelectionContext) => void | Promise<void>yes