interface StringFieldParams {
    blank: boolean;
    trim: boolean;
    choices: object | Function | string[];
    textSearch: boolean;
}

Properties

blank: boolean

Is the string allowed to be blank (empty)?

trim: boolean

Should any provided string be trimmed as part of cleaning?

choices: object | Function | string[]

An array of values or an object of values/labels which represent allowed choices for the field. A function may be provided which dynamically returns the array of choices.

textSearch: boolean

Is this string field a target for text search?