public class WhenDefinedManager extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
static WhenDefinedManager |
get(com.vaadin.flow.component.UI ui)
Gets or creates the manager instance for the given UI.
|
void |
whenDefined(com.vaadin.flow.component.Component[] rootComponents,
com.vaadin.flow.server.Command command)
Runs the provided command once the custom element has been defined for
all Vaadin elements from the give component trees have.
|
public void whenDefined(com.vaadin.flow.component.Component[] rootComponents,
com.vaadin.flow.server.Command command)
The command may run immediately in case no custom elements are used or if they have already been defined.
rootComponents - an array of component hierarchies from which to find used
Vaadin elementscommand - the command to run once all custom elements are definedpublic static WhenDefinedManager get(com.vaadin.flow.component.UI ui)
ui - the UI for which to get an instance, not nullnullCopyright © 2000–2026 Vaadin Ltd. All rights reserved.