Adds a button with label name and a cancel action to the dialog and returns the created button.
See Implementation
Adds a button with label name and a cancel action to the dialog and returns the created button.