@NpmPackage(value="@vaadin/vaadin-material-styles", version="1.3.2") @JsModule(value="@vaadin/vaadin-material-styles/color.js") @JsModule(value="@vaadin/vaadin-material-styles/typography.js") public class Material extends Object implements AbstractTheme
Constructor and Description |
---|
Material() |
Modifier and Type | Method and Description |
---|---|
String |
getBaseUrl()
The url for the base component implementation.
|
Map<String,String> |
getBodyAttributes(String variant)
Deprecated.
|
List<String> |
getHeaderInlineContents()
Return a list of contents to inline to the bootstrap header.
|
Map<String,String> |
getHtmlAttributes(String variant)
Gets the attributes that should be set on the
<html> element when
the Theme variant is applied. |
String |
getThemeUrl()
The url for the components themed version implementation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
translateUrl
public static final String LIGHT
public static final String DARK
public String getBaseUrl()
AbstractTheme
e.g. src/
getBaseUrl
in interface AbstractTheme
public String getThemeUrl()
AbstractTheme
e.g. theme/lumo/
getThemeUrl
in interface AbstractTheme
public List<String> getHeaderInlineContents()
AbstractTheme
This will usually be the any <custom-style>
declarations, see
CustomStyle
For importing theme files, use
HtmlImport
on the
corresponding theme subclass.
getHeaderInlineContents
in interface AbstractTheme
@Deprecated public Map<String,String> getBodyAttributes(String variant)
AbstractTheme
<body>
element when
the Theme variant is applied.getBodyAttributes
in interface AbstractTheme
variant
- the variant defined in the Theme
annotation, not
null
public Map<String,String> getHtmlAttributes(String variant)
AbstractTheme
<html>
element when
the Theme variant is applied.getHtmlAttributes
in interface AbstractTheme
variant
- the variant defined in the Theme
annotation, not
null
Copyright © 2025. All rights reserved.