Package | Description |
---|---|
com.vaadin.flow.router |
Modifier and Type | Method and Description |
---|---|
static <C extends HasElement> |
HighlightConditions.always()
Always highlight.
|
HighlightCondition<RouterLink> |
RouterLink.getHighlightCondition()
Gets the
HighlightCondition of this link. |
static HighlightCondition<RouterLink> |
HighlightConditions.locationPrefix()
Highlight if the navigation path starts with the target
RouterLink path. |
static <C extends HasElement> |
HighlightConditions.locationPrefix(String prefix)
Highlight if the navigation path starts with
prefix . |
static <C extends HasElement> |
HighlightConditions.never()
Never highlight.
|
static HighlightCondition<RouterLink> |
HighlightConditions.sameLocation()
Highlight if the navigation path is the same as the target
RouterLink . |
Modifier and Type | Method and Description |
---|---|
void |
RouterLink.setHighlightCondition(HighlightCondition<RouterLink> highlightCondition)
Sets the
HighlightCondition of this link, which determines if the
link should be highlighted when a AfterNavigationEvent occurs. |
Copyright © 2025. All rights reserved.