Skip to content

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 ​

NameTypeRequiredDefaultDescription
themeOverrideObjectnullA partial ThemeObject keyed by component name, merged over this component's theme and provided to descendants.
typestring"editor"The editor variant to render: "editor" (rich HTML), "input" (single-line), or "textarea".
modelValuestring|number|arrayundefinedThe current value of the template text.
displayDependenciesarray[]Additional widget dependency keys whose values are made available for placeholder substitution.
tagsKeystring"preview_tag_data"The dependency key whose value supplies the tag substitution data for the preview.

Slots ​

extra-legend ​

Scoped slot.

Bindings ​

NameDescription
displayDependencies

Events ​

NameDescription
update:modelValueEmitted when the widget value changes.

Full event reference

Source ​

client/lib/widgets/WidgetPreviewableTemplate.vue