Type Alias: AdwNavigationViewProps
AdwNavigationViewProps =
WidgetProps&object
Defined in: generated/jsx.ts:6787
Props for the AdwNavigationView widget.
Type Declaration
| Name | Type | Description | Defined in |
|---|---|---|---|
animateTransitions? | boolean | Whether to animate page transitions. Gesture-based transitions are always animated. | generated/jsx.ts:6793 |
children? | ReactNode | - | generated/jsx.ts:6861 |
hhomogeneous? | boolean | Whether the view is horizontally homogeneous. If the view is horizontally homogeneous, it allocates the same width for all pages. If it's not, the page may change width when a different page becomes visible. | generated/jsx.ts:6803 |
history? | string[] | null | Array of page IDs representing the navigation stack. The last ID is the visible page. | generated/jsx.ts:6858 |
onGetNextPage()? | (self) => Adw.NavigationPage | null | Emitted when a push shortcut or a gesture is triggered. To support the push shortcuts and gestures, the application is expected to return the page to push in the handler. This signal can be emitted multiple times for the gestures, for example when the gesture is cancelled by the user. As such, the application must not make any irreversible changes in the handler, such as removing the page from a forward stack. Instead, it should be done in the AdwNavigationView.:pushed handler. | generated/jsx.ts:6834 |
onHistoryChanged? | (history) => void | null | Called when the navigation history changes due to user interaction (back button, swipe gesture). | generated/jsx.ts:6860 |
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:6867 |
onPopped()? | (self, page) => void | null | Emitted after page has been popped from the navigation stack. See NavigationViewpop. When using NavigationViewpop_to_page or NavigationViewpop_to_tag, this signal is emitted for each of the popped pages. | generated/jsx.ts:6844 |
onPushed()? | (self) => void | null | Emitted after a page has been pushed to the navigation stack. See NavigationViewpush. | generated/jsx.ts:6850 |
onReplaced()? | (self) => void | null | Emitted after the navigation stack has been replaced. See NavigationViewreplace. | generated/jsx.ts:6856 |
popOnEscape? | boolean | Whether pressing Escape pops the current page. Applications using AdwNavigationView to implement a browser may want to disable it. | generated/jsx.ts:6810 |
ref? | Ref<Adw.NavigationView> | - | generated/jsx.ts:6873 |
vhomogeneous? | boolean | Whether the view is vertically homogeneous. If the view is vertically homogeneous, it allocates the same height for all pages. If it's not, the view may change height when a different page becomes visible. | generated/jsx.ts:6820 |