Hi, i’m novice in Vaadin.
I need a help with background image for layout, … not working
Platform: Windows 10, Vaadin 8.15.
My image file: /resources/background_images/primary_theme_abstract_wallpaper.jpg
My mytheme.scss:
When i’m click on the image path, Idea is open my image correctly and show path(Like: C:\USERS.….…)
@mixin mytheme {
@include valo;
// Insert your own theme rules here
/* Фон */
.custom_background_1{ background-image: url("background_images/primary_theme_abstract_wallpaper.jpg");
}
}
MyUI:
But image don’t show:
@Override
protected void init(VaadinRequest vaadinRequest) {
final VerticalLayout layout = new VerticalLayout();
layout.setSizeFull();
layout.setStyleName("custom_background_1");
setContent(layout);
}