attachShadow method
The Element.attachShadow()
method attaches a shadow DOM tree to the
specified element and returns a reference to its ShadowRoot.
Implementation
external ShadowRoot attachShadow(ShadowRootInit init);
The Element.attachShadow()
method attaches a shadow DOM tree to the
specified element and returns a reference to its ShadowRoot.
external ShadowRoot attachShadow(ShadowRootInit init);