We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.shared.
Interface HasThemeVariant<TVariantEnum extends ThemeVariant>
-
Type Parameters:
TVariantEnum
- The specific theme variant enum typeAll Superinterfaces:
All Known Implementing Classes:
AbstractNumberField
,Avatar
,AvatarGroup
,BigDecimalField
,Button
,ComboBox
,DrawerToggle
,EmailField
,GeneratedVaadinButton
,IntegerField
,MultiSelectComboBox
,NumberField
,PasswordField
,TabSheet
,TextArea
,TextField
public interface HasThemeVariant<TVariantEnum extends ThemeVariant> extends HasTheme
Mixin interface that allows adding and removing typed theme variants to / from a component
-
-
Method Summary
All Methods Modifier and Type Method Description default void
addThemeVariants(TVariantEnum... variants)
Adds theme variants to the component.
default void
removeThemeVariants(TVariantEnum... variants)
Removes theme variants from the component.
-
Methods inherited from interface com.vaadin.flow.component.HasElement
getElement
-
Methods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
-
-
-
-
Method Detail
-
addThemeVariants
default void addThemeVariants(TVariantEnum... variants)
Adds theme variants to the component.
Parameters:
variants
- theme variants to add
-
removeThemeVariants
default void removeThemeVariants(TVariantEnum... variants)
Removes theme variants from the component.
Parameters:
variants
- theme variants to remove
-
-