C - Concrete configurator typepublic interface ThemableLayoutConfigurator<C extends ThemableLayoutConfigurator<C>> extends HasElementConfigurator<C>
ThemableLayout type components.| Modifier and Type | Method and Description |
|---|---|
C |
boxSizing(com.vaadin.flow.component.orderedlayout.BoxSizing boxSizing)
Sets the
box-sizing CSS property of the layout. |
default C |
margin()
Enable layout margins, i.e. toggles
margin theme setting for the element. |
C |
margin(boolean margin)
Enable or disable layout margins, i.e. toggles
margin theme setting for the element. |
default C |
padding()
Add the
padding theme setting for the element. |
C |
padding(boolean padding)
Toggles
padding theme setting for the element. |
default C |
spacing()
Apply
spacing theme setting for the element. |
C |
spacing(boolean spacing)
Toggles
spacing theme setting for the element. |
default C |
withoutMargin()
Disable layout margins, i.e. toggles
margin theme setting for the element. |
default C |
withoutPadding()
Remove the
padding theme setting for the element. |
default C |
withoutSpacing()
Remove
spacing theme setting for the element. |
withEventListener, withEventListener, withThemeNameC margin(boolean margin)
margin theme setting for the element. If a theme
supports this attribute, it will apply or remove margin to the element.margin - adds margin theme setting if true or removes it if falsedefault C margin()
margin theme setting for the element. If a theme supports this
attribute, it will apply margin to the element.default C withoutMargin()
margin theme setting for the element. If a theme supports this
attribute, it will remove margin to the element.C padding(boolean padding)
padding theme setting for the element. If a theme supports this attribute, it will apply or
remove padding to the element.padding - adds padding theme setting if true or removes it if falsedefault C padding()
padding theme setting for the element. If a theme supports this attribute, it will apply
padding to the element.default C withoutPadding()
padding theme setting for the element. If a theme supports this attribute, it will remove
padding to the element.C spacing(boolean spacing)
spacing theme setting for the element. If a theme supports this attribute, it will apply or
remove spacing to the element.
This method adds medium spacing to the component theme, to set other options, use HasElementConfigurator.withThemeName(String).
List of options possible:
spacing - adds spacing theme setting if true or removes it if falsedefault C spacing()
spacing theme setting for the element. If a theme supports this attribute, it will apply
spacing to the element.spacing(boolean)default C withoutSpacing()
spacing theme setting for the element. If a theme supports this attribute, it will remove
spacing to the element.spacing(boolean)C boxSizing(com.vaadin.flow.component.orderedlayout.BoxSizing boxSizing)
box-sizing CSS property of the layout.boxSizing - the box-sizing of the layout. null is interpreted as BoxSizing.UNDEFINEDCopyright © 2019 The Holon Platform. All rights reserved.