Hi,
i’m developing a component using AbstractJavaScriptComponent
The question: where can i add all the image assets ?
Thanks.
Hi,
i’m developing a component using AbstractJavaScriptComponent
The question: where can i add all the image assets ?
Thanks.
You can to put them under /src/main/webapp/VAADIN/themes/mytheme/ -see https://vaadin.com/docs/v8/framework/application/application-resources.html
Alternatively below the /WEB-INF/ folder or in /src/main/resources depending on how you want to access them.
If you create an example project on the command line via
mvn archetype:generate -DarchetypeGroupId=com.vaadin -DarchetypeArtifactId=vaadin-archetype-application -DarchetypeVersion=8.8.0
it will contain the proper theme folder.
Ronny Edler:
You can to put them under /src/main/webapp/VAADIN/themes/mytheme/ -see https://vaadin.com/docs/v8/framework/application/application-resources.htmlAlternatively below the /WEB-INF/ folder or in /src/main/resources depending on how you want to access them.
If you create an example project on the command line via
mvn archetype:generate -DarchetypeGroupId=com.vaadin -DarchetypeArtifactId=vaadin-archetype-application -DarchetypeVersion=8.8.0
it will contain the proper theme folder.
Thanks a lot for the answer, it is exactely what i needed,
another question,
I have to set the resource path of my javascript plugin, how can i get the application path of the plugin theme folder?
Thanks