Skip to main content

Type Alias: AdwMessageDialogProps

AdwMessageDialogProps = GtkWindowProps & object

Defined in: generated/jsx.ts:5231

Props for the AdwMessageDialog widget.

Type Declaration

NameTypeDescriptionDefined in
body?stringThe body text of the dialog.generated/jsx.ts:5233
bodyUseMarkup?booleanWhether the body text includes Pango markup. See Pangoparse_markup.generated/jsx.ts:5239
children?ReactNode-generated/jsx.ts:5288
closeResponse?stringThe ID of the close response. It will be passed to AdwMessageDialog.:response if the window 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:5250
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 Window.default-widget.generated/jsx.ts:5262
extraChild?Gtk.Widget | nullThe child widget. Displayed below the heading and body.generated/jsx.ts:5268
heading?string | nullThe heading of the dialog.generated/jsx.ts:5270
headingUseMarkup?booleanWhether the heading includes Pango markup. See Pangoparse_markup.generated/jsx.ts:5276
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 AdwMessageDialog.close-response.generated/jsx.ts:5287
ref?Ref<Adw.MessageDialog>-generated/jsx.ts:5289