Class HorizontalLayout

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.orderedlayout.HorizontalLayout
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.ClickNotifier<HorizontalLayout>, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasOrderedComponents, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, FlexComponent, ThemableLayout, Serializable

@Tag("vaadin-horizontal-layout") @NpmPackage(value="@vaadin/polymer-legacy-adapter",version="24.3.11") @NpmPackage(value="@vaadin/horizontal-layout",version="24.3.11") @JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule("@vaadin/horizontal-layout/src/vaadin-horizontal-layout.js") public class HorizontalLayout extends com.vaadin.flow.component.Component implements ThemableLayout, FlexComponent, com.vaadin.flow.component.ClickNotifier<HorizontalLayout>
Horizontal Layout places components side-by-side in a row. By default, it has undefined width and height, meaning its size is determined by the components it contains.
See Also:
  • Constructor Details

    • HorizontalLayout

      public HorizontalLayout()
      Constructs an empty layout with spacing on by default.
    • HorizontalLayout

      public HorizontalLayout(com.vaadin.flow.component.Component... children)
      Convenience constructor to create a layout with the children already inside it.
      Parameters:
      children - the items to add to this layout
      See Also:
      • HasComponents.add(Component...)
    • HorizontalLayout

      public HorizontalLayout(FlexComponent.JustifyContentMode justifyContentMode, com.vaadin.flow.component.Component... children)
      Convenience constructor to create a layout with the children and specified justifyContentMode.
      Parameters:
      justifyContentMode - the justifyContentMode
      children - the items to add to this layout
      See Also:
    • HorizontalLayout

      public HorizontalLayout(FlexComponent.Alignment alignment, com.vaadin.flow.component.Component... children)
      Convenience constructor to create a layout with the children and specified vertical alignment.
      Parameters:
      alignment - the vertical alignment
      children - the items to add to this layout
      See Also:
  • Method Details