Vaadin 10+ replacement for BrowserWindowOpener
from Vaadin 8. Wrap your
Component with this helper and clicking the wrapped component will open
a new browser window with the specified address.
BrowserOpener bo = new BrowserOpener();
bo.setContent(new Button("click this button to open"));
bo.setUrl("https://www.vaadin.com");
add(bo);
Starting the test/demo server:
mvn jetty:run
This deploys demo at http://localhost:8080
0.1 : basic functionality, allows specifying URL to open. Target is always
_blank
.
0.2-0.3: V10+ version features
0.4: V14 version