Class 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="23.0.13") @NpmPackage(value="@vaadin/vertical-layout",version="23.0.13") @NpmPackage(value="@vaadin/vaadin-ordered-layout",version="23.0.13")
    @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>
    VerticalLayout is a component container, which shows the subcomponents in the order of their addition (vertically). A vertical layout is by default 100% wide.
    See Also:
    Serialized Form
    • Constructor Detail

      • 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...)