C - Concrete configurator typepublic interface FlexComponentConfigurator<C extends FlexComponentConfigurator<C>> extends HasComponentsConfigurator<C>, HasStyleConfigurator<C>, HasSizeConfigurator<C>
FlexComponent type components.FULL_SIZE| Modifier and Type | Method and Description |
|---|---|
default C |
addAndAlign(com.vaadin.flow.component.Component component,
com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment)
Adds a component to the layout using given
alignment. |
default C |
align(com.vaadin.flow.component.Component component,
com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment)
Set the alignment for an individual component inside the layout.
|
C |
alignItems(com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment)
Sets the default alignment to be used by all components without individual alignments inside the layout.
|
C |
alignSelf(com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment,
com.vaadin.flow.component.HasElement... elementContainers)
Sets an alignment for individual element container inside the layout.
|
C |
expand(com.vaadin.flow.component.Component... componentsToExpand)
Expands the given components.
|
C |
flexGrow(double flexGrow,
com.vaadin.flow.component.HasElement... elementContainers)
Sets the flex grow property of the components inside the layout.
|
C |
justifyContentMode(com.vaadin.flow.component.orderedlayout.FlexComponent.JustifyContentMode justifyContentMode)
Gets the
FlexComponent.JustifyContentMode used by this layout. |
add, addwithEventListener, withEventListener, withThemeNamedisabled, enabledstyleName, styleNamesfullHeight, fullSize, fullWidth, height, height, heightUndefined, sizeUndefined, width, width, widthUndefinedC alignItems(com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment)
The default alignment is FlexComponent.Alignment.STRETCH.
alignment - the alignment to apply to the components. Setting null will reset the alignment to
its defaultC alignSelf(com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment, com.vaadin.flow.component.HasElement... elementContainers)
alignItems.
The default alignment for individual components is FlexComponent.Alignment.AUTO.
alignment - the individual alignment for the children components. Setting null will reset the
alignment to its defaultelementContainers - The element containers (components) to which the individual alignment should be setdefault C align(com.vaadin.flow.component.Component component, com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment)
component - the component to set the alignment foralignment - the Alignment to setC flexGrow(double flexGrow, com.vaadin.flow.component.HasElement... elementContainers)
For example, if all components have a flex grow property value set to 1, the remaining space in the layout will be distributed equally to all components inside the layout. If you set a flex grow property of one component to 2, that component will take twice the available space as the other components, and so on.
Setting to flex grow property value 0 disables the expansion of the element container. Negative values are not allowed.
flexGrow - the proportion of the available space the element container should take upelementContainers - the containers (components) to apply the flex grow propertyC justifyContentMode(com.vaadin.flow.component.orderedlayout.FlexComponent.JustifyContentMode justifyContentMode)
FlexComponent.JustifyContentMode used by this layout.
The default justify content mode is FlexComponent.JustifyContentMode.START.
justifyContentMode - the justify content mode of the layout, never nullC expand(com.vaadin.flow.component.Component... componentsToExpand)
It effectively sets 1 as a flex grow property value for each component.
componentsToExpand - components to expanddefault C addAndAlign(com.vaadin.flow.component.Component component, com.vaadin.flow.component.orderedlayout.FlexComponent.Alignment alignment)
alignment.component - The component to addalignment - the Alignment to use for the componentCopyright © 2019 The Holon Platform. All rights reserved.