Skip to main content

Type Alias: AdwAlertDialogProps

AdwAlertDialogProps = Omit<AdwDialogProps, "onNotify"> & object

Defined in: generated/jsx.ts:1401

Props for the AdwAlertDialog widget.

Type Declaration

NameTypeDescriptionDefined in
body?stringThe body text of the dialog.generated/jsx.ts:1403
bodyUseMarkup?booleanWhether the body text includes Pango markup. See Pangoparse_markup.generated/jsx.ts:1409
children?ReactNode-generated/jsx.ts:1465
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:1420
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:1432
extraChild?Gtk.Widget | nullThe child widget. Displayed below the heading and body.generated/jsx.ts:1438
heading?string | nullThe heading of the dialog.generated/jsx.ts:1440
headingUseMarkup?booleanWhether the heading includes Pango markup. See Pangoparse_markup.generated/jsx.ts:1446
onNotify?(self, propName) => void | nullCalled when any property on this widget changes. Param The widget that emitted the notification Param The name of the property that changed (in kebab-case)generated/jsx.ts:1471
onResponse()?(self, response) => 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:1464
preferWideLayout?booleanWhether to prefer wide layout. Prefer horizontal button layout when possible, and wider dialog width otherwise.generated/jsx.ts:1453
ref?Ref<Adw.AlertDialog>-generated/jsx.ts:1485