Skip to main content

Type Alias: AdwMessageDialogProps

AdwMessageDialogProps = Omit<GtkWindowProps, "onNotify"> & object

Defined in: generated/jsx.ts:6477

Props for the AdwMessageDialog widget.

Type Declaration

NameTypeDescriptionDefined in
body?stringThe body text of the dialog.generated/jsx.ts:6479
bodyUseMarkup?booleanWhether the body text includes Pango markup. See Pangoparse_markup.generated/jsx.ts:6485
children?ReactNode-generated/jsx.ts:6534
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:6496
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:6508
extraChild?Gtk.Widget | nullThe child widget. Displayed below the heading and body.generated/jsx.ts:6514
heading?string | nullThe heading of the dialog.generated/jsx.ts:6516
headingUseMarkup?booleanWhether the heading includes Pango markup. See Pangoparse_markup.generated/jsx.ts:6522
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:6540
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 AdwMessageDialog.close-response.generated/jsx.ts:6533
ref?Ref<Adw.MessageDialog>-generated/jsx.ts:6553