public interface NavigationLink extends HasComponent, com.vaadin.flow.component.HasText, com.vaadin.flow.component.HasStyle, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasSize
A tag) that handles navigation internally, without loading a new page in the
browser.
The HasComponent.getComponent() method can be used to obtain the component to be added in the UI.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
NavigationLink.Builder
NavigationLink builder. |
| Modifier and Type | Method and Description |
|---|---|
static NavigationLink.Builder |
builder(Class<? extends com.vaadin.flow.component.Component> navigationTarget)
Get a builder to create a
NavigationLink. |
static NavigationLink.Builder |
builder(Class<? extends com.vaadin.flow.component.Component> navigationTarget,
com.vaadin.flow.router.Router router)
Get a builder to create a
NavigationLink. |
static NavigationLink.Builder |
builder(String path)
Get a builder to create a
NavigationLink. |
String |
getHref()
Gets the href (the URL) of this link.
|
create, getComponent, getElement, hasEnabled, hasLabel, hasSize, hasStyle, hasValidation, isVisible, setVisibleString getHref()
static NavigationLink.Builder builder(String path)
NavigationLink.path - The path to navigate toNavigationLink builderstatic NavigationLink.Builder builder(Class<? extends com.vaadin.flow.component.Component> navigationTarget)
NavigationLink.navigationTarget - The navigation target to navigate to (not null)NavigationLink builderstatic NavigationLink.Builder builder(Class<? extends com.vaadin.flow.component.Component> navigationTarget, com.vaadin.flow.router.Router router)
NavigationLink.navigationTarget - The navigation target to navigate to (not null)router - The Router to use to resolve navigation target URLsNavigationLink builderCopyright © 2020 The Holon Platform. All rights reserved.