Field
Represents the Field component that is used inside the KendoReact Form component.
It uses name property to access field value and meta information from Form state.
Definition
Package:@progress/kendo-react-form
Properties Interface:FieldProps
Properties
children?
any
Provides child elements that are passed to the rendered component.
colSpan?
number | ResponsiveFormBreakPoint[]
Sets how many columns the field spans in the form layout.
component
string | ComponentType<any>
Can be set to a React component or to the name of an HTML element,
for example, input, select, and textarea.
The props that are passed to the component are the
FieldRenderProps.
displayName
string
name
string
Sets the field name in the form state.
You can use nested fields like user.age and users[0].name.
onChange?
(event: any) => void
Handles changes to the field value.
Use this to update related fields. The Form automatically updates its state when this fires.
Validates the field value and returns error messages.
Only synchronous functions are supported.
Use useMemo to avoid infinite loops when using an array of validators.