Directory

← Back

client-side-confirm-button

Client side confirm button

Author

Contributors

Rating

Provides a button that shows a client side confirmation overlay to have the user confirm the button click without any server interaction. Confirm texts/icons can be customized.

This button can be used as substitute for original com.vaadin.ui.Button.

Sample code

Button button = new ConfirmButton("Save to click");
button.addClickListener(e -> System.out.println("Button was clicked and confirmed by user"));
ConfirmButton button = new ConfirmButton("Save to click");

button.setCancelButtonIcon(FontAwesome.TIMES);
button.setConfirmButtonIcon(FontAwesome.CHECK_CIRCLE);
button.setConfirmQuestion("Are you really sure?");
button.setConfirmText("I am sure!");
button.setCancelText("I am not really sure..");

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

Customizable confirm texts. Assuring overlay position is not negative (leaving screen).

Released
2016-11-24
Maturity
BETA
License
Apache License 2.0

Compatibility

Framework
Vaadin 7.0+
Vaadin 8.0+
Browser
Browser Independent
Online