On This Page
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()
copyTBD
Available properties
This is the list of available properties for a accordion layout:
| Property | Description | Notes |
|---|---|---|
| id | id for this component | |
| cssClasses | list of css classes | content of the css attribute |
| style | inline style attributes | content of the style attribute |
| header | dialog header | |
| content | dialog content | |
| canCancel | if true a cancel button is visible | |
| canReject | if true a reject button is visible | |
| rejectText | text for the reject button | |
| confirmText | text for the confirm button | |
| openedCondition | dialog is opened according to this condition evaluation | |
| confirmActionId | id of action to run when user click the confirm button | |
| rejectActionId | id of action to run when user click the reject button | |
| cancelActionId | id 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