Package com.vaadin.flow.component.shared
Interface HasThemeVariant<TVariantEnum extends ThemeVariant>
- Type Parameters:
TVariantEnum
- The specific theme variant enum type
- All Superinterfaces:
HasElement
,HasTheme
,Serializable
- All Known Implementing Classes:
AccordionPanel
,Avatar
,AvatarGroup
,BigDecimalField
,Button
,CheckboxGroup
,ComboBox
,DatePicker
,DateTimePicker
,Details
,Dialog
,DrawerToggle
,EmailField
,IntegerField
,Map
,MapBase
,MenuBar
,MultiSelectComboBox
,Notification
,NumberField
,PasswordField
,ProgressBar
,RadioButtonGroup
,RichTextEditor
,Scroller
,Select
,SplitLayout
,Tab
,Tabs
,TabSheet
,TextArea
,TextField
,TimePicker
Mixin interface that allows adding and removing typed theme variants to /
from a component
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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 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
-