Package com.vaadin.client
Class ReactUtils
java.lang.Object
com.vaadin.client.ReactUtils
Utils class, intended to ease working with React component related code on
the client side.
- Since:
- 24.5.
- Author:
- Vaadin Ltd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddReadyCallback(elemental.dom.Element element, String name, Runnable runnable) Add a callback to the react component that is called when the component initialization is ready for binding flow.static booleanisInitialized(Supplier<elemental.dom.Element> elementLookup) Check if the react element is initialized and functional.
-
Constructor Details
-
ReactUtils
public ReactUtils()
-
-
Method Details
-
addReadyCallback
Add a callback to the react component that is called when the component initialization is ready for binding flow.- Parameters:
element- react component elementname- name of container to bind torunnable- callback function runnable
-
isInitialized
Check if the react element is initialized and functional.- Parameters:
elementLookup- react element lookup supplier- Returns:
trueif Flow binding can already be done
-