AlertDialog.addResponse
void addResponse(string id, string label)Adds a response with id and label to self.
Responses are represented as buttons in the dialog.
Response ID must be unique. It will be used in signalAlertDialog::response to tell which response had been activated, as well as to inspect and modify the response later.
An embedded underline in label indicates a mnemonic.
[adw.alert_dialog.AlertDialog.setResponseLabel] can be used to change the response label after it had been added.
[adw.alert_dialog.AlertDialog.setResponseEnabled] and [adw.alert_dialog.AlertDialog.setResponseAppearance] can be used to customize the responses further.
Parameters
id | the response ID |
label | the response label |