Flarum (v2.0.0-beta.1)
    Preparing search index...

    Valid options for the setting component builder to generate a Select dropdown.

    interface SelectFieldComponentOptions {
        className?: string;
        default: string;
        help?: Children;
        label?: Children;
        multiple?: boolean;
        options: {
            [value: string]: Children | { disabled?: boolean; label: Children };
        };
        type: "radio"
        | "select"
        | "dropdown"
        | "selectdropdown";
        [property: string]: any;
    }

    Hierarchy (View Summary)

    Indexable

    • [property: string]: any

      Any other virtual element properties, including attributes and event handlers.

    Index

    Properties

    className?: string

    The class name(s) for this virtual element, as a space-separated list.

    default: string
    help?: Children
    label?: Children
    multiple?: boolean
    options: { [value: string]: Children | { disabled?: boolean; label: Children } }

    Map of values to their labels

    type: "radio" | "select" | "dropdown" | "selectdropdown"