Callback function for handling button clicks
The button that was clicked
The data from the dialog
Promise | boolean - Promise or boolean value to determine if the dialog should be closed and dialog promise resolved
Callback function for handling button clicks