An external shadow root

It can be used to build an external component. External component is a customizable subtree that can be composed with normal components. It allows third-party frameworks to render a subtree and then compose it together. However, the subtree must be created in the same backend context.

interface ExternalShadowRoot {
    root: GeneralBackendElement;
    slot: GeneralBackendElement;
    getIdMap(): {
        [id: string]: GeneralBackendElement;
    };
    handleEvent<T>(target, event): void;
    setListener<T>(elem, ev, listener): void;
}

Properties

Methods

  • Type Parameters

    • T

    Parameters

    Returns void

  • Type Parameters

    • T

    Parameters

    Returns void