public final class HighlightConditions extends Object
HighlightCondition
s.Modifier and Type | Method and Description |
---|---|
static <C extends HasElement> |
always()
Always highlight.
|
static HighlightCondition<RouterLink> |
locationPrefix()
Highlight if the navigation path starts with the target
RouterLink path. |
static <C extends HasElement> |
locationPrefix(String prefix)
Highlight if the navigation path starts with
prefix . |
static <C extends HasElement> |
never()
Never highlight.
|
static HighlightCondition<RouterLink> |
sameLocation()
Highlight if the navigation path is the same as the target
RouterLink . |
public static HighlightCondition<RouterLink> sameLocation()
RouterLink
.public static HighlightCondition<RouterLink> locationPrefix()
RouterLink
path.public static <C extends HasElement> HighlightCondition<C> locationPrefix(String prefix)
prefix
.C
- the target typeprefix
- the prefix to match on the location pathpublic static <C extends HasElement> HighlightCondition<C> always()
C
- the target typepublic static <C extends HasElement> HighlightCondition<C> never()
C
- the target typeCopyright © 2025. All rights reserved.