public class ElementUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static elemental.dom.Element |
getElementById(elemental.dom.Node context,
String id)
Searches the shadow root of the given context element for the given id or
searches the light DOM if the element has no shadow root.
|
static boolean |
hasTag(elemental.dom.Node node,
String tag)
Checks whether the
node has required tag. |
public static boolean hasTag(elemental.dom.Node node,
String tag)
node has required tag.node - the node to checktag - the required tag nametrue if the node has required tag namepublic static elemental.dom.Element getElementById(elemental.dom.Node context,
String id)
context - the container element to search throughid - the identifier of the element to search forid if found, otherwise
nullCopyright © 2000–2026 Vaadin Ltd. All rights reserved.