Foundry Virtual Tabletop - API Documentation - Version 14
    Preparing search index...
    interface SelectInputConfig {
        blank?: string;
        groups?: string[];
        labelAttr?: string;
        localize?: boolean;
        options: FormSelectOption[];
        sort?: boolean;
        type?: "single" | "multi" | "checkboxes";
        valueAttr?: string;
    }
    Index

    Properties

    blank?: string
    groups?: string[]

    An option to control the order and display of optgroup elements. The order of strings defines the displayed order of optgroup elements. A blank string may be used to define the position of ungrouped options. If not defined, the order of groups corresponds to the order of options.

    labelAttr?: string

    An alternative label key of the object passed to the options array

    localize?: boolean

    Localize value labels

    options: FormSelectOption[]
    sort?: boolean

    Sort options alphabetically by label within groups

    type?: "single" | "multi" | "checkboxes"

    Customize the type of select that is created

    valueAttr?: string

    An alternative value key of the object passed to the options array