@Retention(value=RUNTIME) @Target(value=TYPE) @Documented @Repeatable(value=HtmlImport.Container.class) public @interface HtmlImport
Component class. For adding multiple
HTML files for a single component, you can use this annotation multiple
times.
It is guaranteed that dependencies will be loaded only once.
NOTE: while this annotation is not inherited using the
@Inherited annotation, the annotations of the possible
parent components or implemented interfaces are read when sending the
dependencies to the browser.
public abstract String value
Component in the
browser.
When using compiled web components, you can use a relative URL or prefix
the URL with frontend:// to serve different files to different
browsers, based on their ES6 support. For example, when using
"MyComponent.html", the evaluated URL will be:
context://frontend/MyComponent.html during development;context://frontend-es6/MyComponent.html for ES6 capable
browsers;context://frontend-es5/MyComponent.html for other
browsers.
Relative URLs are interpreted as relative to the configured
frontend directory location. You can prefix the URL with
context:// to make it relative to the context path or use an
absolute URL to refer to files outside the frontend directory.
Copyright © 2000–2019 Vaadin Ltd. All rights reserved.