overlays addon in Vaadin 8?

Do you know if overlays works with vaadin 8?

https://vaadin.com/directory/component/overlays

I try to use a sample code in my project and Im getting an error:

final ImageOverlay io = new ImageOverlay(button);

Resource res = new ClassResource(this.getClass(), "../icon-new.png");

io.setImage(res);
io.setComponentAnchor(Alignment.TOP_LEFT); // Top left of the button
io.setOverlayAnchor(Alignment.MIDDLE_CENTER); // Center of the image
io.setClickListener(new OverlayClickListener() {
public void overlayClicked(CustomClickableOverlay overlay) {
            Notification.show("ImageOverlay Clicked!");
        }
 });
 layout.addComponent(io);
 io.setEnabled(true);

Hi Anna,

i think it will definitely not work because the “FRAMEWORK SUPPORT” on the addon page states “Vaadin 6.3+” only.

regards
Olli

Fortunately, you will quite likely get similar results with CSS.

-Olli