Define field of given string literal union type. Default initial value will be first option received. Accepts string and number values which are present on provided options list.
requires at least one option to be provided
Rest
const Schema = new FormSchemaBuilder() .fields({ x: FormFields.choice("A", "B", "C") // x: "A" | "B" | "C" }) .build() Copy
const Schema = new FormSchemaBuilder() .fields({ x: FormFields.choice("A", "B", "C") // x: "A" | "B" | "C" }) .build()
Generated using TypeDoc
Define field of given string literal union type. Default initial value will be first option received. Accepts string and number values which are present on provided options list.
requires at least one option to be provided