IFormProps
interface
Form & Input
Props for OrigamForm — controls disabled/readonly state, validation timing (validateOn), fast-fail behaviour, error messages, hints, scroll-to-error, and the overall validity v-model.
TypeScript
Définition
La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.
Héritage
Hérite de
Interfaces parentes dont celle-ci hérite. Leurs propriétés sont disponibles pour tout consommateur de cette interface.
API
Propriétés
Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.
- disabledboolean
- Disable all fields inside the form.
- fastFailboolean
- Stop validation after the first field failure.
- readonlyboolean
- Render all fields in read-only mode.
- modelValueboolean | null
- v-model for the overall form validity. null = untouched.
- validateOnTValidateOn
- When to trigger validation: blur, input, submit, or combinations.
- rulesArray<any>
- Form-level validation rules applied on submit.
- errorMessagesArray<string> | string
- Form-level error messages displayed under the form.
- hintstring
- Helper text displayed below the form.
- messagesArray<string> | string
- Informational messages displayed below the form.
- scrollToErrorboolean | ScrollIntoViewOptions
- Scroll to the first invalid field after a failed submission.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Form with blur-triggered validation and scroll-to-error