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
themeOverrideString|Object|ArraynullA partial theme object merged with the component's default theme; accepts a class string, class array, or theme object.
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
display-dependencies

Events

NameDescription
update:modelValueEmitted when the widget value changes.

Full event reference

Source

client/lib/widgets/WidgetPreviewableTemplate.vue

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2