A Java API for setSelectionRange would be very useful for all the Vaadin text fields, e.g.
TextField textField = new TextField();
new Button("Select all", event -> textField.selectAll());
Also access to execCommand could open advanced use cases for the Java API, e.g.
TextField textField = new TextField();
new Button("Copy", event -> {
textField.selectAll();
textField.copyToClipboard();
Notification.show("Copied to your clipboard!");
});
See Clipboard.js for a related JavaScript API.
A Java API for setSelectionRange would be very useful for all the Vaadin text fields, e.g.
Also access to execCommand could open advanced use cases for the Java API, e.g.
See Clipboard.js for a related JavaScript API.