Class VStyleUtil

java.lang.Object
org.vaadin.firitin.util.VStyleUtil

public final class VStyleUtil extends Object
  • Method Details

    • inject

      public static void inject(String css)
    • injectAsFirst

      public static void injectAsFirst(String css)
      Injects given CSS to the beginning of the head element, so it can be overridden by other styles without strong selectors.
      Parameters:
      css - the CSS to inject
    • applyOrElse

      public static <T extends Enum<T>> void applyOrElse(VStyleUtil.ThemeStyle<T> value, VStyleUtil.ThemeStyle<T> defaultValue, com.vaadin.flow.component.HasElement component)
    • setFlexShrink

      public static void setFlexShrink(double shrink, com.vaadin.flow.component.HasStyle component)
    • setFlexDirection

      public static void setFlexDirection(com.vaadin.flow.component.HasStyle component, VStyleUtil.FlexDirection direction)