Trevixal API
    Preparing search index...

    Interface DialogField

    Small modal dialogs for the toolbar and menu actions.

    Built on <dialog> where available, with a plain overlay fallback so the kit works in older engines and in test DOMs.

    interface DialogField {
        hint?: string;
        label: string;
        name: string;
        options?: readonly { label: string; value: string }[];
        placeholder?: string;
        required?: boolean;
        type?:
            | "number"
            | "text"
            | "select"
            | "textarea"
            | "color"
            | "url"
            | "checkbox"
            | "password"
            | "email";
        value?: string;
        visibleWhen?: { field: string; values: readonly string[] };
    }
    Index
    hint?: string

    Small print under the control.

    label: string
    name: string
    options?: readonly { label: string; value: string }[]

    Choices for a select field.

    placeholder?: string
    required?: boolean
    type?:
        | "number"
        | "text"
        | "select"
        | "textarea"
        | "color"
        | "url"
        | "checkbox"
        | "password"
        | "email"
    value?: string
    visibleWhen?: { field: string; values: readonly string[] }

    Show this field only while another field holds one of values. A URL box that only appears when the "kind" select says "web address". A hidden field is disabled, so required does not block submit and its value comes back as an empty string.