TFormControlShape object¶
Similar to FormControl, but is used frequently as function parameter, less strict than FormControl
with some 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 (optional)¶
boolean
Properties.required (optional)¶
boolean
Properties.readonly (optional)¶
boolean
Properties.hidden (optional)¶
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.