IFormField
interface
Form & Input
Internal registration record for a field inside an OrigamForm — carries the field id, validation/reset methods, the component instance, and the current valid/error state.
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.
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.
- idrequisnumber | string
- Unique identifier of the field within the form.
- validaterequis() => Promise<Array<string>>
- Run validation rules and return an array of error messages.
- resetrequis() => Promise<void>
- Reset the field value and clear validation state.
- resetValidationrequis() => Promise<void>
- Clear validation errors without resetting the value.
- vmrequisRaw<ComponentInternalInstance>
- Raw reference to the field component instance.
- isValidboolean | null
- Current validity state: true, false, or null when untouched.
- errorMessagesrequisArray<string>
- Current list of error messages for this field.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Accessing registered fields via IFormProvide