com.vaadin.flow.router.

Class HighlightActions

    • Method Detail

      • toggleClassName

        public static <C extends HasStyleHighlightAction<C> toggleClassName(String className)

        An action which toggles className class on the target based on its highlight state.

        Type Parameters:

        C - the target type

        Parameters:

        className - the class name to toggle

        Returns:

        the highlight action

      • toggleTheme

        public static <C extends HasElementHighlightAction<C> toggleTheme(String theme)

        An action which toggles theme on the target based on its highlight state.

        Type Parameters:

        C - the target type

        Parameters:

        theme - the theme to toggle

        Returns:

        the highlight action

      • toggleAttribute

        public static <C extends HasElementHighlightAction<C> toggleAttribute(String attribute)

        An action which toggles the target's attribute based on its highlight state.

        Type Parameters:

        C - the target type

        Parameters:

        attribute - the attribute to toggle

        Returns:

        the highlight action

      • none

        public static <C extends HasElementHighlightAction<C> none()

        An action which does nothing, regardless of the highlight state.

        Type Parameters:

        C - the target type

        Returns:

        the highlight action