New to KendoReactStart a free 30-day trial

Contains props that are passed to components rendered inside FieldArray components.

Definition

Package:@progress/kendo-react-form

Properties

Contains child elements that are passed to the FieldArray.

modified

boolean

Shows whether the field value has changed from its initial value. Becomes true when the field value changes for the first time.

name

string

Contains the field name in the form state.

onInsert

(options: { value: any; index: number }) => void

Inserts a value at a specific position in the array.

Parameters:options{ value: any; index: number }

onMove

(options: { prevIndex: number; nextIndex: number }) => void

Moves a value from one position to another in the array.

Parameters:options{ prevIndex: number; nextIndex: number }

Removes and returns the last value from the array.

Returns:

any

onPush

(options: { value: any }) => void

Adds a value to the end of the array.

Parameters:options{ value: any }

Removes a value at a specific position in the array.

Parameters:options{ index: number }Returns:

any

onReplace

(options: { value: any; index: number }) => void

Replaces a value at a specific position in the array.

Parameters:options{ value: any; index: number }

Adds a value to the beginning of the array.

Parameters:options{ value: any }Returns:

number

touched

boolean

Shows whether the user has interacted with the field. Becomes true when the field loses focus.

valid

boolean

Shows whether the field passes validation and has been touched.

validationMessage

null | string

Contains the error message from validation. The field is valid when this is empty.

Represents the current value of the FieldArray (see example).

visited

boolean

Shows whether the user has focused on the field. Becomes true when the field receives focus.