Package com.vaadin.client.flow.dom
Class DomApi
- java.lang.Object
-
- com.vaadin.client.flow.dom.DomApi
-
public class DomApi extends Object
Access point for DOM API. All operations and interactions with DOM nodes and elements should go through this class.This class delegates the operations to the actual DOM API implementations, which might be changed on the run, meaning after dependencies have been loaded.
- Since:
- 1.0
- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidupdateApiImplementation()Updates the DOM API implementation used.static DomElementwrap(elemental.dom.Node node)Wraps the given DOM node to make it safe to invoke any of the methods fromDomNodeorDomElement.
-
-
-
Method Detail
-
wrap
public static DomElement wrap(elemental.dom.Node node)
Wraps the given DOM node to make it safe to invoke any of the methods fromDomNodeorDomElement.- Parameters:
node- the node to wrap- Returns:
- a wrapped element
-
updateApiImplementation
public static void updateApiImplementation()
Updates the DOM API implementation used.
-
-