You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 9, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/api/use-form-handler/register.md
+7-7
Original file line number
Diff line number
Diff line change
@@ -41,12 +41,12 @@ Coming soon...
41
41
| isDirty |`boolean`| Dirty state binding for the field. Only returned if `withDetails` is true |
42
42
| isTouched |`boolean`| Touched state binding for the field. Only returned if `withDetails` is true |
43
43
| onChange |`(el: any) => Promise<void>`| Value update handler for native inputs |
44
-
| required |`boolean`| Native required validation. Only returned if `useNativeValidations` is set to true and `required` is set. |
45
-
| min |`number`| Native min validation. Only returned if `useNativeValidations` is set to true and `min` is set. |
46
-
| max |`number`| Native max validation. Only returned if `useNativeValidations` is set to true and `max` is set. |
47
-
| minLength |`number`| Native minLength validation. Only returned if `useNativeValidations` is set to true and `minLength` is set. |
48
-
| maxLength |`number`| Native maxLength validation. Only returned if `useNativeValidations` is set to true and `maxLength` is set. |
49
-
| pattern |`RegExp`| Native pattern validation. Only returned if `useNativeValidations` is set to true and `pattern` is set. |
44
+
| required |`boolean \| string`| Native required validation. Only returned if `useNativeValidations` is set to true and `required` is set. |
45
+
| min |`number \| Object`| Native min validation. Only returned if `useNativeValidations` is set to true and `min` is set. |
46
+
| max |`number \| Object`| Native max validation. Only returned if `useNativeValidations` is set to true and `max` is set. |
47
+
| minLength |`number \| Object`| Native minLength validation. Only returned if `useNativeValidations` is set to true and `minLength` is set. |
48
+
| maxLength |`number \| Object`| Native maxLength validation. Only returned if `useNativeValidations` is set to true and `maxLength` is set. |
49
+
| pattern |`string \| RegExp \| Object`| Native pattern validation. Only returned if `useNativeValidations` is set to true and `pattern` is set. |
50
50
51
51
:::info
52
52
Notice how `modelValue` and `'onUpdate:modelValue'` are used as our two way data binding for non-native inputs following the Vue [approach](https://vuejs.org/guide/components/v-model.html). So that your fields used for complex forms could also be re-used in other parts of your application with v-model.
0 commit comments