@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface WebJarResource
ClientConnector
.
To declare such dependency you should use the following template: "webJarName:resource"
.
Example: "jquery:jquery.min.js"
To override web resources, that was previously referenced by this annotation, put new files in the following path:
VAADIN/webjars/webJarName/webJarVersion/pathToResource
.
Example: VAADIN/webjars/jquery-ui/1.12.1/jquery-ui.min.js
Modifier and Type | Required Element and Description |
---|---|
java.lang.String[] |
value
Web resources to load before initializing the client-side connector.
|
Modifier and Type | Optional Element and Description |
---|---|
java.lang.String |
overridePath
A path that will be used while resolving resource from a file system.
|