RunicHostedRegionElement interface

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

interface RunicHostedRegionElement extends HTMLElement

<runic-hosted-region name="check">: a region where the host application shows a guest's Window. Attributes: name (1 to 64 ASCII letters, digits, ., _ or -), sizing (fill or content-height) and label, the region's accessible name, which overrides the guest page's title. It reflects state and focused, and dispatches runicregionstatechange and runicregiontitlechange. Light-DOM children with slot="fallback" show unless the region is attached; a child with slot set to a state (loading, ended, …) shows instead in that state. ::part(frame) styles the frame. The element sets the CSS color-scheme of the frame, or of a component's element, to the colour scheme the host decided for the region (colorScheme of the region's pushes), and clears it without one.

Properties

name

name: string;

The name attribute.

sizing

sizing: HostedRegionSizing;

The sizing attribute: fill unless it is content-height.

label

label: string | null;

The label attribute, or null.

state

readonly state: HostedRegionState;

What the region shows now.

guestTitle

readonly guestTitle: string | null;

The guest page's title as the host passed it on, or null.

focused

readonly focused: boolean;

Whether the keyboard focus is in the region.