Skip to content

Interface: ViewOutlet

API / @xmachines/play-view / index / ViewOutlet

Defined in: packages/play-view/src/view-types.ts:83

One outlet of a parent view: the element that receives the view of a child state.

Example

outlets: {
sidebar: { element: "shell", slot: "sidebar" }, // the "sidebar" slot of "shell"
"*": { element: "shell" }, // the children of "shell"
}

Properties

PropertyModifierTypeDescriptionDefined in
elementreadonlystringThe key of the element of the parent view that receives the child view.packages/play-view/src/view-types.ts:85
slot?readonlystringA named slot of that element. Omit it to append the child view to the children of the element, which every renderer supports.packages/play-view/src/view-types.ts:90