HTMLtoCANVAS
Makes Screenshot. Html2Canvas lib for vaadin 14+
Makes Screenshot of element and returns img.src. Realization of Html2Canvas.js lib for vaadin 14+
Sample code
Button button = new Button("Click here"); button.addClickListener(l -> { CompletableFuture<String> completableFuture = HTML2CANVAS.takeScreenShot(button.getElement()); completableFuture.thenRun(() -> { try { Image image = new Image(completableFuture.get(), "adfs"); add(image); } catch (InterruptedException | ExecutionException ignored) { } }); }); add(button);
Links
Compatibility
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
Initial commit
- Released
- 2022-06-24
- Maturity
- EXPERIMENTAL
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 14+
- Browser
- N/A
HTMLtoCANVAS - Vaadin Add-on Directory
Makes Screenshot. Html2Canvas lib for vaadin 14+Makes Screenshot of element and returns img.src. Realization of Html2Canvas.js lib for vaadin 14+