ShadowRootBuilder: ((context: ComponentContext, init: ShadowContentDef) => ShadowRoot | null | undefined)

Type declaration

    • (context: ComponentContext, init: ShadowContentDef): ShadowRoot | null | undefined
    • Shadow root builder function type.

      An instance of this function is available in component context and is used by @AttachShadow decorator to attach shadow root to decorated component's custom element.

      By default, if shadow root already exists for the component's element, it uses one.

      Dispatches a wesib:shadowAttached event for the found or attached shadow root.

      Parameters

      Returns ShadowRoot | null | undefined

Generated using TypeDoc