|
|
@@ -1959,7 +1959,7 @@ The table below describes the features available in the formApi.
|
|
|
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-------------------------------------------------------------------------------------------------------------------------------|
|
|
|
| getFormState | Get FormState | formApi.getFormState() |
|
|
|
| submitForm | Manually submit form operation | formApi.submitForm() |
|
|
|
-| reset | Reset the form manually | formApi.reset(fields?: Array\<string\>) |
|
|
|
+| reset | Reset the form manually | formApi.reset(fields?: Array <string\>) |
|
|
|
| validate | Manually trigger validation of the entire form. the verification of the entire Field will be triggered by default when no parameters are passed , if you want to trigger the verification of some fields, pass in the target field array <br/><br/> After the Form level validator is configured, the Field level validator will not be triggered again when submit or formApi.validate() | formApi.validate() <br/>.then(values => {})<br/>.catch(errors => {})<br/>OR formApi.validate(['fieldA','fieldB']) |
|
|
|
| setValues | Set the values of the entire form. The isOverride in the second parameter is false by default. <br/> By default, only the values of the existing field in the Form are updated from `newValues` to`formState.values`. <br/> When isOverride is `true`, the newValues will be overwritten and assigned to formState.values | formApi.setValues(newValues: object, {isOverride: boolean}) |
|
|
|
| getValues | Get the values of all Field | formApi.getValues() |
|