@Target(value=TYPE) @Retention(value=RUNTIME) @Inherited @Documented public @interface Theme
The theme allows to define a way to translate base component url to the
themed component url (@see AbstractTheme), which specifies components
styles.
By default com.vaadin.flow.theme.lumo.Lumo theme is used if it's in
the classpath. You may disable theming with NoTheme annotation.
Theme annotation should be added to the AppShellConfigurator
implementation.
Only a single theme can be defined and having multiple instances will throw an exception.
Here is an example:
@Theme(Lumo.class)
public class MyAppShell implements AppShellConfigurator {
}
AbstractTheme,
NoTheme| Modifier and Type | Required Element and Description |
|---|---|
Class<? extends AbstractTheme> |
value
The theme translation handler.
|
public abstract Class<? extends AbstractTheme> value
public abstract String variant
Copyright © 2021. All rights reserved.