Is it possible get resource image url in javascript file?
I know how it works in css.
Like in css:
.myclass {
background: url("images/myimage.png")
}
But how can I access to image in vm or js file?
src="images/myimage.png" doesn't work
Community moderators have prevented the ability to post new answers.
This is answered else where on the site.
Quoting from Joseph Clark's answer there:
<img src="$req.contextPath/download/resources/my.plugin.key:my-module-key/path/to/image.png">
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.