Package com.vaadin.client.flow.dom
Class DomApi
java.lang.Object
com.vaadin.client.flow.dom.DomApi
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
Modifier and TypeMethodDescriptionstatic voidUpdates 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 Details
-
wrap
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.
-