Luxar Viewer API Documentation - v2026.9.22
    Preparing search index...

    One entry of a context menu (or of a submenu).

    interface ContextMenuItem {
        label: string;
        icon?: string;
        kind?: "radio" | "action";
        checked?: boolean;
        disabled?: boolean;
        separatorBefore?: boolean;
        action?: () => void;
        submenu?: ContextMenuItem[];
    }
    Index
    label: string
    icon?: string

    Inline stroke SVG (rail icon contract); rendered at 13px.

    kind?: "radio" | "action"

    'radio' renders a check dot + aria-checked; default is a plain action.

    checked?: boolean
    disabled?: boolean
    separatorBefore?: boolean

    Hairline separator above this item.

    action?: () => void

    Invoked on activation; the whole menu closes afterwards.

    submenu?: ContextMenuItem[]

    One level only — a submenu item must not carry its own submenu.