RegionSlot interface

Module @runic-artifex/views in @runic-artifex/views 0.23.0

interface RegionSlot<R>

One region of a RegionCollection. key stays the same while the region exists and is never reused in the window, so frameworks key a region's outlet by it and keep each region's component, and its DOM, across states.

Properties

key

readonly key: string;

Identifies the region in the window: opaque, compared only for equality.

content

readonly content: R | null;

The region's current View, or null while the region is empty.