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 | String|Object|Array | null | A partial theme object merged with the component's default theme; accepts a class string, class array, or theme object. | |
| 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. | |
| tagsKey | 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 |
|---|---|
| display-dependencies |
Events
| Name | Description |
|---|---|
update:modelValue | Emitted when the widget value changes. |
Source
client/lib/widgets/WidgetPreviewableTemplate.vue