@Retention(value=RUNTIME) @Target(value=TYPE) @Documented @Repeatable(value=CssImport.Container.class) public @interface CssImport
Depending on the attributes provided, the CSS content will be appended in different ways:
<custom-style>
<style>
CSS-CONTENT
</style>
</custom-style>
<custom-style>
<style include="INCLUDE-VALUE">
CSS-CONTENT
</style>
</custom-style>
<dom-module id="ID-VALUE">
<template>
<style include="INCLUDE-VALUE">
CSS-CONTENT
</style>
</template>
</dom-module>
<dom-module id="RANDOM-ID" theme-for="THEME-FOR-VALUE">
<template>
<style include="INCLUDE-VALUE">
CSS-CONTENT
</style>
</template>
</dom-module>
| Modifier and Type | Required Element and Description |
|---|---|
String |
value
Location of the file with the CSS content.
|
| Modifier and Type | Optional Element and Description |
|---|---|
String |
id
The 'id' of the new 'dom-module' created.
|
String |
include
The 'id' of a module to include in the generated 'custom-style'.
|
String |
themeFor
The tag name of the themable element that the generated 'dom-module' will
target.
|
public abstract String value
public abstract String include
public abstract String id
public abstract String themeFor
Copyright © 2000–2019 Vaadin Ltd. All rights reserved.