A confirm dialog can be used to ask for user confirmation.

  • Fluent
  • Declarative

   ConfirmDialog.builder()
                .header("Are you sure?")
                .content(new Text("bla, bla, bla"))
                .confirmActionId("confirm_action_id")
                .confirmText("Yes, I want this to happen!")
                .build()
copy

TBD

Available properties

This is the list of available properties for a accordion layout:

PropertyDescriptionNotes
idid for this component
cssClasseslist of css classescontent of the css attribute
styleinline style attributescontent of the style attribute
headerdialog header
contentdialog content
canCancelif true a cancel button is visible
canRejectif true a reject button is visible
rejectTexttext for the reject button
confirmTexttext for the confirm button
openedConditiondialog is opened according to this condition evaluation
confirmActionIdid of action to run when user click the confirm button
rejectActionIdid of action to run when user click the reject button
cancelActionIdid of action to run when user click the cancel button

You can see a full explanation of those properties at https://vaadin.com/docs/latest/components/confirm-dialog