CustomShadowElement
MMO.elements · 1 symbol · generated 5 Oct 2026
CustomShadowElement
CustomShadowElement.js:12CustomElement with shadow dom mixin WARNING: It is a class mixin. Meaning you extend it with a parameter
- Namespace
MMO.elements- Extends
CustomElement(ClassElement)
Index
| constructor() | ||
| queryShadow(selector) | ||
| queryShadowAll(selector) | ||
| init() | Override: a shadow root scopes its own styles, so there is nothing to hoist. |
Methods4
constructor()
CustomShadowElement.js:13queryShadow(selector)
CustomShadowElement.js:26| selector | string | |
| returns | ?Element | the first match INSIDE the shadow root |
queryShadowAll(selector)
CustomShadowElement.js:34| selector | string | |
| returns | NodeList | every match INSIDE the shadow root |
init()
CustomShadowElement.js:41Override: a shadow root scopes its own styles, so there is nothing to hoist.