InputTestWorkerUpdate: {
    multiline?: boolean;
    options?: InputTestEntity[] | null;
    useSearchableSelect?: boolean;
    value?: string | number | null;
} & ValueTestWorkerUpdate

Type declaration

  • Optionalmultiline?: boolean

    Change whether or not to display the input area as a multiline text box.

    If options are set, this property will have no effect.

  • Optionaloptions?: InputTestEntity[] | null

    Change the currently set options.

    These should take the form of { id: uniqueIdentifier, name: humanReadableName }

    When the user selects an option, the value of the test will become the id of the option selected.

    Changing this property will clear the value of the test.

  • OptionaluseSearchableSelect?: boolean

    Whether to use a searchable select.

    It is advised to bind to the onPaginate event to populate the searchable select if this is true. If multiple events are bound to onPaginate, it will use the result of the last one.

    Changing this property will clear the value of the test.

  • Optionalvalue?: string | number | null

    Set the value of the test.

    If options are set, this will attempt to look up the InputTestEntity based on the id.