Skip to content

FormControl object

FormControl object represent a html form element in a javascript store.

Properties

Properties.id

string - form control id.

Properties.name

string - form control name.

Properties.type

TFormControlType - form control type.

Properties.value (optional)

TFormControlValue - form control value.

Properties.initialValue (optional)

TFormControlValue - form control initial value.

Properties.disabled

boolean

Properties.required

boolean

Properties.readonly

boolean

Properties.hidden

boolean

Properties.validator (optional)

YupSchema | - user can use yup schema builder for control validator, or custom javascript method.

Properties.errors (optional)

string | string[] - validation errors.