Package com.vaadin.client
Class LitUtils
java.lang.Object
com.vaadin.client.LitUtils
Utils class, intended to ease working with LitElement related code on client
side.
- Author:
- Vaadin Ltd
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisLitElement(elemental.dom.Node element) Checks if the given element is a LitElement.static voidwhenRendered(elemental.dom.Element element, Runnable runnable) Invokes therunnablewhen the given Lit element has been rendered at least once.
-
Method Details
-
isLitElement
public static boolean isLitElement(elemental.dom.Node element) Checks if the given element is a LitElement.- Parameters:
element- the custom element- Returns:
trueif the element is a Lit element,falseotherwise
-
whenRendered
Invokes therunnablewhen the given Lit element has been rendered at least once.- Parameters:
element- the Lit elementrunnable- the command to run
-