Skip to main content
Version: 1.0.4

Embedded View

Renders another view inside this one, with parameters. This is the single most valuable pattern in the Designer: author a faceplate once, embed it wherever that equipment appears.

The Embedded View component as it renders with its default settings.The Embedded View component as it renders with its default settings.

Reach for it when you need:

  • A motor faceplate reused for every motor
  • A standard header or status strip across screens

Component name: EmbeddedView · Category: Container

In the palette: Embed another view into the current layout

Properties

Any property can be bound to a tag, another component's property, or a query.

PropertyTypeDefaultDescription
targetPathview""The view to be embedded
paramsobject{}
defaultWidthbooleanfalseUse target view's explicitly configured width (disables 100% stretch)
defaultHeightbooleanfalseUse target view's explicitly configured height (disables 100% stretch)
stylestyle{}Custom CSS properties

Events

Attach event actions to these in the Event Manager.

EventLabelGroupPayload
clickClickMouseThe DOM event.
dblclickDouble clickMouseThe DOM event.
contextmenuRight clickMouseThe DOM event.
mouseenterMouse enterMouseThe DOM event.
mouseleaveMouse leaveMouseThe DOM event.
Right-click behaves differently in the Designer

contextmenu fires your configured actions at runtime only — in LiveView and in preview. On the Designer canvas the right-click is captured to open the Event Manager, so testing it there will not run your actions. Test right-click in preview.

Notes

This is the visualization counterpart of a UDT, and the two are meant to be used together: one UDT for the tags, one embedded view for the screen.

See also