Interface FluentHasSize<S extends FluentHasSize<S>>

  • Method Details Link icon

    • withHeight Link icon

      default S withHeight(String height)
    • withSizeFull Link icon

      default S withSizeFull()
    • withSizeUndefined Link icon

      default S withSizeUndefined()
    • withWidth Link icon

      default S withWidth(String width)
    • addResizeListener Link icon

      @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 Link icon

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

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

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

      default S withMinWidth(String minWidth)
    • withMaxWidth Link icon

      default S withMaxWidth(String maxWidth)
    • withMinHeight Link icon

      default S withMinHeight(String minHeight)
    • withMaxHeight Link icon

      default S withMaxHeight(String maxHeight)
    • withMinSize Link icon

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

      default S withMaxSize(String width, String height)