I would like to ask how to get which button (or other component) (added in them) is clicked and pass a value to a parent dialog? Perhaps we should have a listener.
Can you provide some code or a link?
Thank you in advance
See usages here: https://vaadin.com/components/vaadin-dialog/java-examples As you can see in the "Confirmation dialog" section, the buttons are added manually to regular Dialogs, so you have full controll over the listener.
And the JavaDoc nicely lists the available methods: addDialogCloseActionListener https://vaadin.com/api/platform/14.7.1/com/vaadin/flow/component/dialog/Dialog.html which is also shown on the documentation page.
The same goes for notification:https://vaadin.com/components/vaadin-notification/java-examples https://vaadin.com/api/platform/14.7.1/com/vaadin/flow/component/notification/Notification.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.