Directory

← Back

LongPressExtension Add-on

Long click and hold or touch gesture sensing event for the target component.

Author

Contributors

Rating

LongPressExtension is a simple component extension for Vaadin 8. It gives long click and hold or touch gesture sensing event for the target component.

Sample code

        Label label = new Label("Click and hold 5 sec");
        label.addStyleName(ValoTheme.LABEL_LARGE);
        final LongPressExtension ext = new LongPressExtension(label);
        ext.setTimeout(5000);
        ext.addLongPressListener(event -> {
            Notification.show("Pressed");
            label.addStyleName(ValoTheme.LABEL_SUCCESS);
        });

Compatibility

1.0.1
(24)
(23)
(22)
(21)
(20)
(19)
(18)
(17)
(16)
(15)
(14)
(13)
(12)
(11)
(10)
8.10Y
(8.9)
(8.8)
(8.7)
(8.6)
(8.5)
(8.4)
(8.3)
(8.2)
(8.1)
(8.0)
(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

Version 1.0.1

  • The first version, Vaadin 8.12 or newer requored
Released
2021-10-08
Maturity
BETA
License
Apache License 2.0

Compatibility

Framework
Vaadin 8.10+
Browser
Browser Independent
Online