FieldInjectedProps
Represents the props that are passed from the Form component to the components nested inside it. To use the KendoFrom Injected Property it should be injected it in the component that defines the Form content using the below code.
...........
inject: {
kendoForm: { default: {} },
}
...........
Name | Type | Default | Description |
---|---|---|---|
allowSubmit? |
|
Indicates if the Form is ready to be submitted.
If | |
errors? |
|
The key-value pair containing the current errors by field path, combined from both field and form level validators. | |
modified |
|
Indicates if the Form is modified. If any field is modified, | |
modifiedByField |
|
An object that holds the | |
onBlur |
|
A callback you have to call when the rendered component is blurred. Responsible for setting the touched state of the Field. | |
onChange |
|
A callback you have to call when the value of the rendered component is changed
(see example).
The | |
onFocus |
|
A callback you have to call when the rendered component is focused. Responsible for setting the visited state of the Field. | |
onFormReset |
|
A callback for resetting the Form. | |
onInsert |
|
A callback to insert value at given index of the array. | |
onMove |
|
A callback to move a value from one index to another. Useful for drag and drop reordering. | |
onPop |
|
A callback to remove a value from the end of the array. The value is returned. | |
onPush |
|
A callback to add a value to the end of the array. | |
onRemove |
|
A callback to remove a value from given index of the array. | |
onReplace |
|
A callback to replace value at given index of the array. | |
onSubmit |
|
A callback for submitting the Form.
Can be passed to the | |
onUnshift |
|
A callback to add a value to the beginning of the array. | |
submitted |
|
Indicates if the Form is successfully submitted. Useful for detecting if user is leaving the form before saving changes. | |
touched |
|
Indicates if the Form is touched.
If any field is touched, | |
touchedByField |
|
An object that holds the | |
valid |
|
Indicates if the Form is valid.
If any field is invalid, | |
validate |
|
When called without parameters it validates all the fields in the Form. If called with object parameter with keys names - the names of the fields, only these fields are validated. | |
valueGetter |
|
A callback for getting the value of a field without using the Field component (see example). Useful for creating and modifying the UI based on the field values. | |
visited |
|
Indicates if the Form is visited.
If any field is visited, | |
visitedByField |
|
An object that holds the |