| Package | Description |
|---|---|
| com.vaadin.flow.component.internal | |
| com.vaadin.flow.component.page | |
| com.vaadin.flow.shared.ui |
| Modifier and Type | Method and Description |
|---|---|
LoadMode |
ComponentMetaData.HtmlImportDependency.getLoadMode() |
| Modifier and Type | Method and Description |
|---|---|
void |
Page.addHtmlImport(String url,
LoadMode loadMode)
In compatibility mode (or Flow 1.x), adds the given HTML import to the
page and ensures that it is loaded successfully.
|
void |
Page.addJavaScript(String url,
LoadMode loadMode)
Adds the given JavaScript to the page and ensures that it is loaded
successfully.
|
void |
Page.addJsModule(String url,
LoadMode loadMode)
Adds the given JavaScript module to the page and ensures that it is
loaded successfully.
|
void |
Page.addStyleSheet(String url,
LoadMode loadMode)
Adds the given style sheet to the page and ensures that it is loaded
successfully.
|
| Modifier and Type | Method and Description |
|---|---|
LoadMode |
Dependency.getLoadMode()
Gets load mode that will be used for dependency loading.
|
static LoadMode |
LoadMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoadMode[] |
LoadMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Constructor and Description |
|---|
Dependency(Dependency.Type type,
String url,
LoadMode loadMode)
Creates a new dependency of the given type, to be loaded from the given
URL.
|
Copyright © 2019. All rights reserved.