WidgetPreviewableTemplate
Overview
A widget that combines an editable input (HTML editor, plain input, or textarea) with a live preview pane that substitutes $variable placeholders using dependency data.
Theme entry: WidgetPreviewableTemplate
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| themeOverride | Object | null | A partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants. | |
| type | string | "editor" | The editor variant to render: "editor" (rich HTML), "input" (single-line), or "textarea". | |
| modelValue | string|number|array | undefined | The current value of the template text. | |
| displayDependencies | array | [] | Additional widget dependency keys whose values are made available for placeholder substitution. | |
string | "preview_tag_data" | The dependency key whose value supplies the tag substitution data for the preview. |
Slots
extra-legend
Scoped slot.
Bindings
| Name | Description |
|---|---|
| displayDependencies |
Events
| Name | Description |
|---|---|
update:modelValue | Emitted when the widget value changes. |
Source
client/lib/widgets/WidgetPreviewableTemplate.vue