@Retention(value=RUNTIME) @Target(value=TYPE) @Documented @Repeatable(value=JsModule.Container.class) public @interface JsModule
Component
class. For adding multiple JavaScript Module files for a single component,
you can use this annotation multiple times.
The JavaScript module files should be located:
frontend
directory in your root project folder in case of
WAR project
META-INF/resources/frontend
directory (inside a project
resources folder) in case of JAR project (if you are using Maven this is
src/main/resources/META-INF/resources/frontend
directory).
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.
CssImport
Copyright © 2019. All rights reserved.