IInlineEditEditSlotBindings
interface
Slots
Scoped slot bindings exposed by the #edit slot of OrigamInlineEdit — gives full control over the input layout while delegating state-machine logic to the component.
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.
- valuerequisstring
- Current draft value (two-way; mutate via setValue).
- setValuerequis(next: string) => void
- Update the draft value from within the slot.
- confirmrequis() => void
- Run the validator and, if it passes, commit the draft.
- cancelrequis() => void
- Discard the draft and return to display mode.
- errorrequisstring | null
- Current validation error message, or null when none.
- isPendingrequisboolean
- True while an async validator is in flight.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Custom textarea input in the #edit slot