RegionCollection interface

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

interface RegionCollection<R>

A region collection member of generated state, such as state.documents: the regions in order and the selected index. selected changes only when a selection or close commits, so a tab bar that highlights selected shows the kept tab after a departure guard vetoed a switch.

Properties

regions

readonly regions: readonly RegionSlot<R>[];

No documentation.

selected

readonly selected: number | null;

The index in regions of the selected region, or null when the collection has no region.