Type Alias: AdwDialogProps
AdwDialogProps =
WidgetProps&object
Defined in: generated/jsx.ts:3170
Props for the AdwDialog widget.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
canClose? | boolean | Whether the dialog can be closed. If set to FALSE, the close button, shortcuts and Dialogclose will result in AdwDialog.:close-attempt being emitted instead, and bottom sheet close swipe will be disabled. Dialogforce_close still works. | generated/jsx.ts:3179 |
child? | Gtk.Widget | null | The child widget of the AdwDialog. | generated/jsx.ts:3181 |
children? | ReactNode | - | generated/jsx.ts:3240 |
contentHeight? | number | The height of the dialog's contents. Set it to -1 to reset it to the content's natural height. See also: Window.default-height | generated/jsx.ts:3189 |
contentWidth? | number | The width of the dialog's contents. Set it to -1 to reset it to the content's natural width. See also: Window.default-width | generated/jsx.ts:3197 |
defaultWidget? | Gtk.Widget | null | The default widget. It's activated when the user presses Enter. | generated/jsx.ts:3203 |
focusWidget? | Gtk.Widget | null | The focus widget. | generated/jsx.ts:3205 |
followsContentSize? | boolean | Whether to size content automatically. If set to TRUE, always use the content's natural size instead of AdwDialog.content-width and AdwDialog.content-height. If the content resizes, the dialog will immediately resize as well. See also: Window.resizable | generated/jsx.ts:3215 |
onCloseAttempt()? | (self) => void | null | Emitted when the close button or shortcut is used, or Dialogclose is called while AdwDialog.can-close is set to FALSE. | generated/jsx.ts:3237 |
onClosed()? | (self) => void | null | Emitted when the dialog is successfully closed. | generated/jsx.ts:3239 |
onNotify? | (self, propName) => void | null | Called 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:3246 |
presentationMode? | Adw.DialogPresentationMode | The dialog's presentation mode. When set to ADW_DIALOG_AUTO, the dialog appears as a bottom sheet when the following condition is met: max-width: 450px or max-height: 360px, and as a floating window otherwise. Set it to ADW_DIALOG_FLOATING or ADW_DIALOG_BOTTOM_SHEET to always present it a floating window or a bottom sheet respectively, regardless of available size. Presentation mode does nothing for dialogs presented as a window. | generated/jsx.ts:3229 |
ref? | Ref<Adw.Dialog> | - | generated/jsx.ts:3261 |
title? | string | The title of the dialog. | generated/jsx.ts:3231 |