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
Definition
The TypeScript interface definition as found in the origam source. Click the copy icon to copy the snippet.
API
Properties
Every property declared by this interface, with its type, optionality and default.
- valuerequiredstring
- Current draft value (two-way; mutate via setValue).
- setValuerequired(next: string) => void
- Update the draft value from within the slot.
- confirmrequired() => void
- Run the validator and, if it passes, commit the draft.
- cancelrequired() => void
- Discard the draft and return to display mode.
- errorrequiredstring | null
- Current validation error message, or null when none.
- isPendingrequiredboolean
- True while an async validator is in flight.
Ecosystem
Used by
Components and composables that extend or consume this interface.
Usage
Examples
Ready-to-paste code snippets using this interface.
Custom textarea input in the #edit slot