Describe your motivation
HasTheme has a recently added bindThemeNames with a signal that returns a list of theme names to apply.
Usage example, show the button as either primary or warning depending on some condition :
button.bindThemeNames(() -> List.of(conditionSignal.get() ? "primary" : "warning"));
Describe the solution you'd like
Make the same structure available also for the typed theme variants, e.g.
button.bindThemeVariants(() -> List.of(conditionSignal.get() ? ButtonVariant.LUMO_PRIMARY : ButtonVariant.LUMO_WARNING));
Describe alternatives you've considered
No response
Additional context
No response
Describe your motivation
HasThemehas a recently addedbindThemeNameswith a signal that returns a list of theme names to apply.Usage example, show the button as either
primaryorwarningdepending on some condition :Describe the solution you'd like
Make the same structure available also for the typed theme variants, e.g.
Describe alternatives you've considered
No response
Additional context
No response