Misc
Inplace
A display that turns into its editor when activated, and back again when done.
WAI-ARIA tested
Import
main.ts
import { Inplace } from '@vitral/vue';Editable text
Ada Lovelace
Lazy content
View photo
Disabled
Read-only value
API
Read from packages/vue/src/components/Inplace/types.ts, so it says what the component actually accepts.
Props
| Name | Type | Description |
|---|---|---|
| closable | boolean | Adds a button that goes back to the display. |
| disabled | boolean | — |
Plus pt, dt and unstyled from BaseProps, see pass-through and unstyled mode.
Emits
| Event | Payload | Description |
|---|---|---|
| open | event: Event | — |
| close | event: Event | — |
Slots
| Name | Slot props | Description |
|---|---|---|
| display | — | What shows until it is activated. |
| content | (props: { closeCallback: (event?: Event) => void }) | What it becomes: the editor. |