Vaadin Grails: Where do I put my images / icons for my Vaadin app in Grails -
i've tried putting them in web-app/vaadin/themes/images folder , tried accessing web-app/images folder , several others. no luck.
using new themeresource(null, "vaadin/themes/images/mypic.png") , many many variations no luck.
please let me know i'm missing? i'm have resort new externalresource("http:\...mypic.png") images. unable figure out how access locally. it's simple i'm missing.
vaadin 7.1.11 , grails 2.3.5
thanks dana
your images should located in vaadin/themes.[your_theme]/img access them can use:
link l = new link("download introduction source", fr) l.settargetname("_blank") l.setstylename("link-pdf") l.seticon(new themeresource("img/pdf.png"))
or, scss 'url(img/notes-bg.png)'
instance.
don't forget declare theme in vaadinconfig.groovy:
themes = ['your_theme']
Comments
Post a Comment