Skip to main content

Type Alias: AdwNavigationSplitViewProps

AdwNavigationSplitViewProps = WidgetProps & object

Defined in: generated/jsx.ts:6689

Props for the AdwNavigationSplitView widget.

Type Declaration

NameTypeDescriptionDefined in
children?ReactNode-generated/jsx.ts:6763
collapsed?booleanWhether the split view is collapsed. When collapsed, the children are put inside an AdwNavigationView, otherwise they are displayed side by side. The AdwNavigationSplitView.show-content controls which child is visible while collapsed.generated/jsx.ts:6699
content?Adw.NavigationPage | nullThe content widget.generated/jsx.ts:6701
maxSidebarWidth?numberThe maximum sidebar width. Maximum width is affected by AdwNavigationSplitView.sidebar-width-unit. The sidebar widget can still be allocated with larger width if its own minimum width exceeds it.generated/jsx.ts:6711
minSidebarWidth?numberThe minimum sidebar width. Minimum width is affected by AdwNavigationSplitView.sidebar-width-unit. The sidebar widget can still be allocated with larger width if its own minimum width exceeds it.generated/jsx.ts:6721
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:6769
ref?Ref<Adw.NavigationSplitView>-generated/jsx.ts:6784
showContent?booleanDetermines the visible page when collapsed. If set to TRUE, the content widget will be the visible page when AdwNavigationSplitView.collapsed is TRUE; otherwise the sidebar widget will be visible. If the split view is already collapsed, the visible page changes immediately.generated/jsx.ts:6732
sidebar?Adw.NavigationPage | nullThe sidebar widget.generated/jsx.ts:6734
sidebarPosition?Gtk.PackTypeThe sidebar position. If set to GTK_PACK_START, the sidebar is displayed before the content, and the sidebar will be the root page when collapsed. If set to GTK_PACK_END, the sidebar is displayed after the content, and the content will be the root page.generated/jsx.ts:6744
sidebarWidthFraction?numberThe preferred sidebar width as a fraction of the total width. The preferred width is additionally limited by AdwNavigationSplitView.min-sidebar-width and AdwNavigationSplitView.max-sidebar-width. The sidebar widget can be allocated with larger width if its own minimum width exceeds the preferred width.generated/jsx.ts:6755
sidebarWidthUnit?Adw.LengthUnitThe length unit for minimum and maximum sidebar widths. See AdwNavigationSplitView.min-sidebar-width and AdwNavigationSplitView.max-sidebar-width.generated/jsx.ts:6762