Skip to main content

Type Alias: AdwAlertDialogProps

AdwAlertDialogProps = AdwDialogProps & object

Defined in: generated/jsx.ts:1240

Props for the AdwAlertDialog widget.

Type Declaration

NameTypeDescriptionDefined in
body?stringThe body text of the dialog.generated/jsx.ts:1242
bodyUseMarkup?booleanWhether the body text includes Pango markup. See Pangoparse_markup.generated/jsx.ts:1248
children?ReactNode-generated/jsx.ts:1304
closeResponse?stringThe ID of the close response. It will be passed to AdwAlertDialog.:response if the dialog is closed by pressing Escape or with a system action. It doesn't have to correspond to any of the responses in the dialog. The default close response is close.generated/jsx.ts:1259
defaultResponse?string | nullThe response ID of the default response. The button corresponding to this response will be set as the default widget of the dialog. If not set, the default widget will not be set, and the last added response will be focused by default. See AdwDialog.default-widget.generated/jsx.ts:1271
extraChild?Gtk.Widget | nullThe child widget. Displayed below the heading and body.generated/jsx.ts:1277
heading?string | nullThe heading of the dialog.generated/jsx.ts:1279
headingUseMarkup?booleanWhether the heading includes Pango markup. See Pangoparse_markup.generated/jsx.ts:1285
onResponse?(response, self) => void | nullThis signal is emitted when the dialog is closed. response will be set to the response ID of the button that had been activated. if the dialog was closed by pressing Escape or with a system action, response will be set to the value of AdwAlertDialog.close-response.generated/jsx.ts:1303
preferWideLayout?booleanWhether to prefer wide layout. Prefer horizontal button layout when possible, and wider dialog width otherwise.generated/jsx.ts:1292
ref?Ref<Adw.AlertDialog>-generated/jsx.ts:1305