FieldArrayRenderProps
Contains props that are passed to components rendered inside FieldArray components.
Definition
Package:@progress/kendo-react-form
Properties
children
any
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.
onMove
(options: { prevIndex: number; nextIndex: number }) => void
Moves a value from one position to another in the array.
Removes and returns the last value from the array.
any
onPush
(options: { value: any }) => void
Adds a value to the end of the array.
Removes a value at a specific position in the array.
any
onReplace
(options: { value: any; index: number }) => void
Replaces a value at a specific position in the array.
Adds a value to the beginning of the array.
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.
value
any
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.