com.vaadin.flow.router.
Class HighlightActions
A set of predefined HighlightAction
s.
Since:
1.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic <C extends HasElement>
HighlightAction<C>none()
An action which does nothing, regardless of the highlight state.
static <C extends HasElement>
HighlightAction<C>toggleAttribute
(String attribute) An action which toggles the target's
attribute
based on its highlight state.static <C extends HasStyle>
HighlightAction<C>toggleClassName
(String className) An action which toggles
className
class on the target based on its highlight state.static <C extends HasElement>
HighlightAction<C>toggleTheme
(String theme) An action which toggles
theme
on the target based on its highlight state.
-
Method Details
-
toggleClassName
An action which toggles
className
class on the target based on its highlight state.Type Parameters:
C
- the target typeParameters:
className
- the class name to toggleReturns:
the highlight action
-
toggleTheme
An action which toggles
theme
on the target based on its highlight state.Type Parameters:
C
- the target typeParameters:
theme
- the theme to toggleReturns:
the highlight action
-
toggleAttribute
An action which toggles the target's
attribute
based on its highlight state.Type Parameters:
C
- the target typeParameters:
attribute
- the attribute to toggleReturns:
the highlight action
-
none
An action which does nothing, regardless of the highlight state.
Type Parameters:
C
- the target typeReturns:
the highlight action
-