Directory

← Back

SelectionRangeExtension

Extension for TextField and TextArea selection event listening

Author

Rating

Popularity

<100

Extension for TextField and TextArea selection; when text in the input field is selected, an event containing the starting and end points of the selection is fired.

Sample code

// adding the extension to TextField, fires also 'empty selection' events
SelectionRangeExtension.extend(textfield,
        new SelectionRangeExtension.SelectionRangeListener() {
                    @Override
                    public void selectionChanged(int start, int end) {
                        System.out.println("1: " + start + ", " + end);
                    }

         }, true);

Compatibility

2.0.0-alpha1
(24.3)
(24.2)
(24.1)
(24)
(23)
(22)
(21)
(20)
(19)
(18)
(17)
(16)
(15)
(14)
(13)
(12)
(11)
(10)
8.0-8.21Y
(7.7)
(7.6)
(7.5)
(7.4)
(7.3)
(7.2)
(7.1)
(7.0)
(6.8)
(6.7)
(6.6)
(6.5)
(6.4)
(6.3)
(6.2)
(6.1)
(6.0)

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 release for Vaadin 8

Released
2017-11-30
Maturity
EXPERIMENTAL
License
Apache License 2.0

Compatibility

Framework
Vaadin 8.0+
Browser
Firefox
Safari
Google Chrome
Internet Explorer
Microsoft Edge

SelectionRangeExtension - Vaadin Add-on Directory

Extension for TextField and TextArea selection event listening SelectionRangeExtension - Vaadin Add-on Directory
Extension for TextField and TextArea selection; when text in the input field is selected, an event containing the starting and end points of the selection is fired.
Online