Flarum (2.x)
    Preparing search index...
    interface DeckColumnField {
        gambits?: string;
        help?: Children;
        input?: (
            attrs: { id: string; onchange: (value: string) => void; value: string },
        ) => Children;
        invalidText?: Children;
        key: string;
        label: Children;
        options?: () => Record<string, string>;
        parse?: (value: string) => string | number | null;
        placeholder?: string;
        search?: DeckColumnSearch<any>;
    }
    Index
    gambits?: string

    Makes the field a query of this resource's registered gambits (e.g. 'discussions'), written in the search modal with its suggestions and a preview of what matches.

    help?: Children
    input?: (
        attrs: { id: string; onchange: (value: string) => void; value: string },
    ) => Children

    A picker of your own; whatever it passes to onchange is the field's value.

    invalidText?: Children

    Shown when parse rejects the value.

    key: string
    label: Children
    options?: () => Record<string, string>

    Turns the field into a select of value => label.

    parse?: (value: string) => string | number | null

    Converts what the member typed into the stored value; return null to reject it.

    placeholder?: string
    search?: DeckColumnSearch<any>

    Turns the field into a picker.