Skip to main content

Type Alias: AdwNavigationViewProps

AdwNavigationViewProps = WidgetProps & object

Defined in: generated/jsx.ts:6787

Props for the AdwNavigationView widget.

Type Declaration

NameTypeDescriptionDefined in
animateTransitions?booleanWhether to animate page transitions. Gesture-based transitions are always animated.generated/jsx.ts:6793
children?ReactNode-generated/jsx.ts:6861
hhomogeneous?booleanWhether 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[] | nullArray of page IDs representing the navigation stack. The last ID is the visible page.generated/jsx.ts:6858
onGetNextPage()?(self) => Adw.NavigationPage | nullEmitted 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 | nullCalled when the navigation history changes due to user interaction (back button, swipe gesture).generated/jsx.ts:6860
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:6867
onPopped()?(self, page) => void | nullEmitted 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 | nullEmitted after a page has been pushed to the navigation stack. See NavigationViewpush.generated/jsx.ts:6850
onReplaced()?(self) => void | nullEmitted after the navigation stack has been replaced. See NavigationViewreplace.generated/jsx.ts:6856
popOnEscape?booleanWhether 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?booleanWhether 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