Package com.vaadin.client
Class LitUtils
- java.lang.Object
-
- com.vaadin.client.LitUtils
-
public final class LitUtils extends Object
Utils class, intended to ease working with LitElement related code on client side.- Author:
- Vaadin Ltd
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
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
public static void whenRendered(elemental.dom.Element element, Runnable runnable)Invokes therunnablewhen the given Lit element has been rendered at least once.- Parameters:
element- the Lit elementrunnable- the command to run
-
-