Index

CustomShadowElement

MMO.elements · 1 symbol · generated 5 Oct 2026

mixin

CustomShadowElement

CustomShadowElement.js:12

CustomElement with shadow dom mixin WARNING: It is a class mixin. Meaning you extend it with a parameter

class MMO.elements.CustomShadowElement extends MMO.elements.CustomElement(ClassElement)
Namespace
MMO.elements
Extends
CustomElement(ClassElement)
class P extends MMO.elements.CustomShadowElement(HTMLParagraphElement) {..}

Index

constructor()
queryShadow(selector)
queryShadowAll(selector)
init()Override: a shadow root scopes its own styles, so there is nothing to hoist.

Methods4

queryShadow(selector)

CustomShadowElement.js:26
queryShadow(selector)
selectorstring
returns?Elementthe first match INSIDE the shadow root

queryShadowAll(selector)

CustomShadowElement.js:34
queryShadowAll(selector)
selectorstring
returnsNodeListevery match INSIDE the shadow root