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
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
element | readonly | string | The key of the element of the parent view that receives the child view. | packages/play-view/src/view-types.ts:85 |
slot? | readonly | string | A 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 |