Package com.vaadin.flow.component.shared
Interface HasThemeVariant<TVariantEnum extends ThemeVariant>
- Type Parameters:
TVariantEnum- The specific theme variant enum type
- All Superinterfaces:
com.vaadin.flow.component.HasElement,com.vaadin.flow.component.HasTheme,Serializable
public interface HasThemeVariant<TVariantEnum extends ThemeVariant>
extends com.vaadin.flow.component.HasTheme
Mixin interface that allows adding and removing typed theme variants to /
from a component
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddThemeVariants(TVariantEnum... variants) Adds theme variants to the component.default voidremoveThemeVariants(TVariantEnum... variants) Removes theme variants from the component.Methods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasTheme
addThemeName, addThemeNames, getThemeName, getThemeNames, hasThemeName, removeThemeName, removeThemeNames, setThemeName, setThemeName
-
Method Details
-
addThemeVariants
Adds theme variants to the component.- Parameters:
variants- theme variants to add
-
removeThemeVariants
Removes theme variants from the component.- Parameters:
variants- theme variants to remove
-