You're viewing an older version of Vaadin JavaDoc. Please see version 24.7.0 for the latest.
com.vaadin.flow.router.

Class HighlightConditions

    • Method Detail

      • locationPrefix

        public static <C extends HasElementHighlightCondition<C> locationPrefix​(String prefix)

        Highlight if the navigation path starts with prefix.

        Type Parameters:

        C - the target type

        Parameters:

        prefix - the prefix to match on the location path

        Returns:

        the highlight condition

      • always

        public static <C extends HasElementHighlightCondition<C> always()

        Always highlight.

        Type Parameters:

        C - the target type

        Returns:

        an always true highlight condition

      • never

        public static <C extends HasElementHighlightCondition<C> never()

        Never highlight.

        Type Parameters:

        C - the target type

        Returns:

        an always false highlight condition