@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="ShadowRoot")
public class ShadowRoot
extends DocumentFragment
| Modifier and Type | Field and Description |
|---|---|
@JsNonNull java.lang.String |
innerHTML
The innerHTML property of the ShadowRoot interface sets or returns a reference to the DOM tree inside the ShadowRoot.
|
@JsNullable EventHandler |
onslotchange |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, nodeValue, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE, textContent| Modifier | Constructor and Description |
|---|---|
protected |
ShadowRoot() |
| Modifier and Type | Method and Description |
|---|---|
Element |
activeElement()
The activeElement read-only property of the Document and ShadowRoot interfaces returns the Element within the DOM or shadow DOM tree that currently has focus.
|
boolean |
delegatesFocus()
The delegatesFocus read-only property of the ShadowRoot interface returns a boolean that indicates whether delegatesFocus was set when the shadow was attached (see Element.attachShadow()).
|
Element |
fullscreenElement()
The DocumentOrShadowRoot.fullscreenElement read-only property returns the Element that is currently being presented in full-screen mode in this document, or null if full-screen mode is not currently in use.
|
@JsNonNull JsArray<Animation> |
getAnimations()
The getAnimations() method of the Document interface returns an array of all Animation objects currently in effect whose target elements are descendants of the document.
|
Element |
host()
The host read-only property of the ShadowRoot returns a reference to the DOM element the ShadowRoot is attached to.
|
java.lang.String |
mode()
The mode property of the ShadowRoot specifies its mode — either open or closed.
|
Element |
pointerLockElement()
The pointerLockElement property of the Document and ShadowRoot interfaces provides the element set as the target for mouse events while the pointer is locked.
|
java.lang.String |
slotAssignment() |
StyleSheetList |
styleSheets()
The styleSheets read-only property of the DocumentOrShadowRoot interface returns a StyleSheetList of CSSStyleSheet objects, for stylesheets explicitly linked into or embedded in a document.
|
append, append, childElementCount, children, firstElementChild, getElementById, lastElementChild, prepend, prepend, querySelector, querySelectorAll, replaceChildren, replaceChildrenappendChild, baseURI, childNodes, cloneNode, cloneNode, compareDocumentPosition, contains, firstChild, getRootNode, getRootNode, hasChildNodes, insertBefore, isConnected, isDefaultNamespace, isEqualNode, isSameNode, lastChild, lookupNamespaceURI, lookupPrefix, nextSibling, nodeName, nodeType, normalize, ownerDocument, parentElement, parentNode, previousSibling, removeChild, replaceChildaddEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic @JsNonNull java.lang.String innerHTML
public @JsNullable EventHandler onslotchange
@JsProperty(name="activeElement") @Nullable public Element activeElement()
@JsProperty(name="delegatesFocus") public boolean delegatesFocus()
@JsProperty(name="fullscreenElement") @Nullable public Element fullscreenElement()
@JsProperty(name="host") @Nonnull public Element host()
@JsProperty(name="mode") @Nonnull @ShadowRootMode public java.lang.String mode()
@JsProperty(name="pointerLockElement") @Nullable public Element pointerLockElement()
@JsProperty(name="slotAssignment") @Nonnull @SlotAssignmentMode public java.lang.String slotAssignment()
@JsProperty(name="styleSheets") @Nonnull public StyleSheetList styleSheets()
public @JsNonNull JsArray<Animation> getAnimations()