Class VerticalLayout

    • Constructor Detail

      • VerticalLayout

        public VerticalLayout()
        Constructs an empty VerticalLayout.
      • VerticalLayout

        public VerticalLayout​(com.vaadin.flow.component.Component... children)
        Constructs a VerticalLayout with the given components. The components are added in the given order.
        Parameters:
        children - The components to add.
        See Also:
        AbstractComponentContainer.addComponents(Component...)
    • Method Detail

      • addComponentsAndExpand

        public void addComponentsAndExpand​(com.vaadin.flow.component.Component... components)
        Adds the given components to this layout and sets them as expanded. The height of this layout is set to 100% if it is currently undefined.

        The components are added in the provided order to the end of this layout. Any components that are already children of this layout will be moved to new positions.

        Overrides:
        addComponentsAndExpand in class AbstractOrderedLayout
        Parameters:
        components - the components to set, not null