New to KendoReactStart a free 30-day trial

FieldProps

Interface

Contains the props for the Field component that you use inside forms.

Definition

Package:@progress/kendo-react-form

Properties

Provides child elements that are passed to the rendered component.

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.

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.

Parameters:eventany

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.