Class ConfirmDialog.CancelEvent

java.lang.Object
java.util.EventObject
com.vaadin.flow.component.ComponentEvent<ConfirmDialog>
com.vaadin.flow.component.confirmdialog.ConfirmDialog.CancelEvent
All Implemented Interfaces:
Serializable
Enclosing class:
ConfirmDialog

@DomEvent("cancel") public static class ConfirmDialog.CancelEvent extends ComponentEvent<ConfirmDialog>
Event that is fired when the user clicks the Cancel button or presses Escape. The event is not sent if the Cancel button is hidden.

Note that the event is fired before the dialog's closing animation has finished. When manually adding / removing the dialog to / from the UI, use the ConfirmDialog.ClosedEvent to wait with the removal until the animation has finished. When relying on the auto-add behavior by just calling ConfirmDialog.open() or ConfirmDialog.setOpened(boolean), this is not necessary.

See Also:
  • Constructor Details

    • CancelEvent

      public CancelEvent(ConfirmDialog source, boolean fromClient)