Directory

← Back

V Clipboard

UI-less clipboard feature

Author

Rating

Popularity

<100

This is a component provides clipboard feature without UI. Use clipboard feature 'simply' without UI or Component. And call clipboard in your own component.

Sample code

VaadinClipboard vaadinClipboard = VaadinClipboardImpl.GetInstance();
vaadinClipboard.copyToClipboard(text, copySuccess -> {
   if(copySuccess) {
        Notification.show( "\'"+ text + "\'" + " has been copied to clipboard.");
     } else {
         Notification.show( "Copy has been failed!.", Notification.Type.ERROR_MESSAGE);
       }
 });
VaadinClipboard vaadinClipboard = VaadinClipboardImpl.GetInstance();
vaadinClipboard.getFromClipboard((copySuccess,readText) -> {
    if(copySuccess) {
         Notification.show( "\'"+ readText + "\'" + " has been read from clipboard.");
         label.setValue(readText);
     } else {
         Notification.show( "Copy has been failed!.", Notification.Type.ERROR_MESSAGE);
     }
 });

Compatibility

(Loading compatibility data...)

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

First commit version 1.0.0

Released
2019-07-12
Maturity
STABLE
License
Apache License 2.0

Compatibility

Framework
Vaadin 8.0+
Browser
Firefox
Opera
Google Chrome

V Clipboard - Vaadin Add-on Directory

UI-less clipboard feature V Clipboard - Vaadin Add-on Directory
This is a component provides clipboard feature without UI. Use clipboard feature 'simply' without UI or Component. And call clipboard in your own component.
Online