Class VerticalLayout

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.orderedlayout.VerticalLayout
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.ClickNotifier<VerticalLayout>, 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-vertical-layout") @NpmPackage(value="@vaadin/polymer-legacy-adapter",version="24.5.3") @NpmPackage(value="@vaadin/vertical-layout",version="24.5.3") @JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule("@vaadin/vertical-layout/src/vaadin-vertical-layout.js") public class VerticalLayout extends com.vaadin.flow.component.Component implements ThemableLayout, FlexComponent, com.vaadin.flow.component.ClickNotifier<VerticalLayout>
Vertical Layout places components top-to-bottom in a column. By default, it has 100% width and undefined height, meaning its width is constrained by its parent component and its height is determined by the components it contains.
See Also:
  • Constructor Details

    • VerticalLayout

      public VerticalLayout()
      Constructs an empty layout with spacing and padding on by default.
    • VerticalLayout

      public VerticalLayout(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...)
    • VerticalLayout

      public VerticalLayout(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:
    • VerticalLayout

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