Interface FluentHasSize<S extends FluentHasSize<S>>

  • Method Details

    • withHeight

      default S withHeight(String height)
    • withSizeFull

      default S withSizeFull()
    • withSizeUndefined

      default S withSizeUndefined()
    • withWidth

      default S withWidth(String width)
    • addResizeListener

      @Deprecated default com.vaadin.flow.shared.Registration addResizeListener(com.vaadin.flow.component.ComponentEventListener<ResizeObserver.SizeChangeEvent> listener)
      Deprecated.
      Hoping to get this feature to the core soon, there might be API conflicts at that point. Use the lower level ResizeObserver directly if you are concerned about potential future API conflicts.
      Adds a listener that is notified when the size of the component changes on the client side. The listener is also notified when the dimensions of the component become available for the first time.
      Parameters:
      listener - the listener to add
      Returns:
      a registration object for removing the listener
    • withFullWidth

      default S withFullWidth()
      Sets the width to 100%.
      Returns:
      this (for method chaining)
    • withFullHeight

      default S withFullHeight()
      Sets the height to 100%.
      Returns:
      this (for method chaining)
    • withSize

      default S withSize(String width, String height)
    • withMinWidth

      default S withMinWidth(String minWidth)
    • withMaxWidth

      default S withMaxWidth(String maxWidth)
    • withMinHeight

      default S withMinHeight(String minHeight)
    • withMaxHeight

      default S withMaxHeight(String maxHeight)
    • withMinSize

      default S withMinSize(String width, String height)
    • withMaxSize

      default S withMaxSize(String width, String height)