RegionOutlets class

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

class RegionOutlets<R extends PageReference = PageReference>

Renders a ViewOutlet for the regions of a region collection, each in a <div data-region-key> tracked by the region's key. A region that is not selected is rendered with hidden and an inline display: none, which author CSS without !important cannot override. A new content reference in a region remounts only that region's component. The projected content renders while the collection has no region, and missing is passed to each outlet. panelProps returns attributes for each wrapper, so a tab can point aria-controls at its panel:

<runic-region-outlets [collection]="state()?.documents" [registry]="pages" [panelProps]="panel">No open documents</runic-region-outlets>

mode "keep-mounted" (the default) renders every region and hides all but the selected one, so each region keeps its component and DOM. "selected" renders only the selected region.

Properties

collection

readonly collection: InputSignal<RegionCollection<R> | null | undefined>;

No documentation.

registry

readonly registry: InputSignal<ViewRegistry<R>>;

No documentation.

missing

readonly missing: InputSignal<TemplateRef<ViewOutletMissingContext<R>> | undefined>;

Renders a reference whose kind has no registered component instead of the English alert.

mode

readonly mode: InputSignal<RegionOutletsMode>;

No documentation.

panelProps

readonly panelProps: InputSignal<((entry: RegionEntry<R>) => RegionPanelAttributes) | undefined>;

Returns attributes for a region's wrapper, for example { id, role: "tabpanel", "aria-labelledby" }.

shown

protected readonly shown: import("@angular/core").Signal<{
    region: RegionEntry<R>;
    attributes: Readonly<Record<string, string | null | undefined>> | undefined;
}[]>;

No documentation.

ɵfac

static ɵfac: i0.ɵɵFactoryDeclaration<RegionOutlets<any>, never>;

No documentation.

ɵcmp

static ɵcmp: i0.ɵɵComponentDeclaration<RegionOutlets<any>, "runic-region-outlets", never, {
    "collection": {
        "alias": "collection";
        "required": false;
        "isSignal": true;
    };
    "registry": {
        "alias": "registry";
        "required": true;
        "isSignal": true;
    };
    "missing": {
        "alias": "missing";
        "required": false;
        "isSignal": true;
    };
    "mode": {
        "alias": "mode";
        "required": false;
        "isSignal": true;
    };
    "panelProps": {
        "alias": "panelProps";
        "required": false;
        "isSignal": true;
    };
}, {}, never, [
    "*"
], true, never>;

No documentation.