Interface FluentHasStyle<S extends FluentHasStyle<S>>

  • Method Summary

    Modifier and Type
    Method
    Description
    default S
    withAddedClassName(String... classNames)
    Adds one or more CSS class names to this component.Multiple class names can be specified by using multiple parameters.
    default S
    withClassName(String className)
    Sets the CSS class names of this component.This method overwrites any previous set class names.
    default S
    withStyle(String name, String value)
     

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Method Details

    • withClassName

      default S withClassName(String className)
      Sets the CSS class names of this component.This method overwrites any previous set class names.
      Parameters:
      className - a space-separated string of class names to set, or null to remove all class names
      Returns:
      the configured component
    • withAddedClassName

      default S withAddedClassName(String... classNames)
      Adds one or more CSS class names to this component.Multiple class names can be specified by using multiple parameters.
      Parameters:
      classNames - the CSS class name or class names to be added to the component
      Returns:
      the configured component
    • withStyle

      default S withStyle(String name, String value)