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.

typescript

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.

value
requis
string
Current draft value (two-way; mutate via setValue).
setValue
requis
(next: string) => void
Update the draft value from within the slot.
confirm
requis
() => void
Run the validator and, if it passes, commit the draft.
cancel
requis
() => void
Discard the draft and return to display mode.
error
requis
string | null
Current validation error message, or null when none.
isPending
requis
boolean
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

vue