ShadowRoot class
- Inheritance
- Object
- EventTarget
- Node
- DocumentFragment
- ShadowRoot
- Implemented types
- Annotations
- @SupportedBrowser(SupportedBrowser.CHROME, '26')
- @Native("ShadowRoot")
Properties
- activeElement → Element? read-only, override
- applyAuthorStyles ↔ bool read / write
- baseUri → String? @JSName('baseURI'), read-only, inherited
- childNodes → List<
Node> @Creates('NodeList'), @Returns('NodeList'), read-only, inherited - A list of this node's children. [...]
- children ↔ List<
Element> read / write, inherited - delegatesFocus → bool? read-only
- firstChild → Node? read-only, inherited
- The first child of this node. [...]
- fullscreenElement → Element? read-only, override
- hashCode → int read-only, inherited
- The hash code for this object. [...]
- host → Element? read-only
- innerHtml ↔ String? @JSName('innerHTML'), read / write, override
- isConnected → bool? read-only, inherited
- lastChild → Node? read-only, inherited
- The last child of this node. [...]
- mode → String? read-only
- nextNode → Node? @JSName('nextSibling'), read-only, inherited
- The next sibling node. [...]
- nodeName → String? read-only, inherited
- The name of this node. [...]
- nodes ↔ List<
Node> read / write, inherited - A modifiable list of this node's children.
- nodeType → int read-only, inherited
- The type of node. [...]
- nodeValue → String? read-only, inherited
- The value of this node. [...]
- olderShadowRoot → ShadowRoot? read-only
- on → Events read-only, inherited
- This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
- ownerDocument → Document? read-only, inherited
- The document this node belongs to. [...]
- parent → Element? @JSName('parentElement'), read-only, inherited
- The parent element of this node. [...]
- parentNode → Node? read-only, inherited
- The parent node of this node. [...]
- pointerLockElement → Element? read-only, override
- previousNode → Node? @JSName('previousSibling'), read-only, inherited
- The previous sibling node. [...]
- resetStyleInheritance ↔ bool read / write
- runtimeType → Type read-only, inherited
- A representation of the runtime type of the object.
- styleSheets → List<
StyleSheet> ?@Creates('_StyleSheetList'), @Returns('_StyleSheetList'), read-only, override - text ↔ String? @JSName('textContent'), read / write, inherited
- All text within this node and its descendents. [...]
Methods
- addEventListener(
String type, EventListener? listener, [bool? useCapture]) → void inherited - append(
Node node) → Node @JSName('appendChild'), inherited - Adds a node to the end of the child nodes list of this node. [...]
- appendHtml(
String text, {NodeValidator? validator, NodeTreeSanitizer? treeSanitizer}) → void inherited - Parses the specified text as HTML and adds the resulting node after the last child of this document fragment.
- appendText(
String text) → void inherited - Adds the specified text as a text node after the last child of this document fragment.
- clone(
bool? deep) → Node @JSName('cloneNode'), inherited - Returns a copy of this node. [...]
- contains(
Node? other) → bool inherited - Returns true if this node contains the specified node. [...]
- dispatchEvent(
Event event) → bool inherited - elementFromPoint(
int x, int y) → Element? override - elementsFromPoint(
int x, int y) → List< Element> override - getElementById(
String elementId) → Element? inherited - getRootNode(
[Map? options]) → Node inherited - getSelection(
) → Selection? override - hasChildNodes(
) → bool inherited - Returns true if this node has any children. [...]
- insertAllBefore(
Iterable< Node> newNodes, Node refChild) → voidinherited - Inserts all of the nodes into this node directly before refChild. [...]
- insertBefore(
Node node, Node? child) → Node inherited - Inserts all of the nodes into this node directly before refChild. [...]
- noSuchMethod(
Invocation invocation) → dynamic inherited - Invoked when a non-existent method or property is accessed. [...]
- querySelector(
String selectors) → Element? inherited - Finds the first descendant element of this document fragment that matches the specified group of selectors. [...]
- querySelectorAll<
T extends Element> (String selectors) → ElementList< T> inherited - Finds all descendant elements of this document fragment that match the specified group of selectors. [...]
- remove(
) → void inherited - Removes this node from the DOM.
- removeEventListener(
String type, EventListener? listener, [bool? useCapture]) → void inherited - replaceWith(
Node otherNode) → Node inherited - Replaces this node with another node.
- setInnerHtml(
String? html, {NodeValidator? validator, NodeTreeSanitizer? treeSanitizer}) → void inherited - toString(
) → String inherited - Print out a String representation of this Node.
Operators
- operator ==(
Object other) → bool inherited - The equality operator. [...]
Static Properties
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-html/ShadowRoot-class.html