pull/6632/head
Mert Sincan 2024-10-23 21:37:45 +01:00
parent d01c40c55b
commit 94845433d8
2 changed files with 12 additions and 6 deletions

View File

@ -213,7 +213,7 @@
"optional": false, "optional": false,
"readonly": false, "readonly": false,
"type": "boolean", "type": "boolean",
"default": "", "default": "false",
"description": "Whether the form field has been touched." "description": "Whether the form field has been touched."
}, },
{ {
@ -221,7 +221,7 @@
"optional": false, "optional": false,
"readonly": false, "readonly": false,
"type": "boolean", "type": "boolean",
"default": "", "default": "false",
"description": "Whether the form field has been modified." "description": "Whether the form field has been modified."
}, },
{ {
@ -229,7 +229,7 @@
"optional": false, "optional": false,
"readonly": false, "readonly": false,
"type": "boolean", "type": "boolean",
"default": "", "default": "true",
"description": "Whether the form field has not been modified." "description": "Whether the form field has not been modified."
}, },
{ {
@ -237,7 +237,7 @@
"optional": false, "optional": false,
"readonly": false, "readonly": false,
"type": "boolean", "type": "boolean",
"default": "", "default": "true",
"description": "Whether the form field is valid." "description": "Whether the form field is valid."
}, },
{ {
@ -245,7 +245,7 @@
"optional": false, "optional": false,
"readonly": false, "readonly": false,
"type": "boolean", "type": "boolean",
"default": "", "default": "false",
"description": "Whether the form field is invalid." "description": "Whether the form field is invalid."
}, },
{ {
@ -261,7 +261,7 @@
"optional": false, "optional": false,
"readonly": false, "readonly": false,
"type": "any[]", "type": "any[]",
"default": "", "default": "[]",
"description": "All error messages of the form field." "description": "All error messages of the form field."
} }
], ],

View File

@ -126,22 +126,27 @@ export interface FormFieldState {
value: any; value: any;
/** /**
* Whether the form field has been touched. * Whether the form field has been touched.
* @defaultValue false
*/ */
touched: boolean; touched: boolean;
/** /**
* Whether the form field has been modified. * Whether the form field has been modified.
* @defaultValue false
*/ */
dirty: boolean; dirty: boolean;
/** /**
* Whether the form field has not been modified. * Whether the form field has not been modified.
* @defaultValue true
*/ */
pristine: boolean; pristine: boolean;
/** /**
* Whether the form field is valid. * Whether the form field is valid.
* @defaultValue true
*/ */
valid: boolean; valid: boolean;
/** /**
* Whether the form field is invalid. * Whether the form field is invalid.
* @defaultValue false
*/ */
invalid: boolean; invalid: boolean;
/** /**
@ -150,6 +155,7 @@ export interface FormFieldState {
error: any; error: any;
/** /**
* All error messages of the form field. * All error messages of the form field.
* @defaultValue []
*/ */
errors: any[]; errors: any[];
} }