Skip to main content

Type Alias: AdwOverlaySplitViewProps

AdwOverlaySplitViewProps = WidgetProps & object

Defined in: generated/jsx.ts:7001

Props for the AdwOverlaySplitView widget.

Type Declaration

NameTypeDescriptionDefined in
children?ReactNode-generated/jsx.ts:7080
collapsed?booleanWhether the split view is collapsed. When collapsed, the sidebar widget is presented as an overlay above the content widget, otherwise they are displayed side by side.generated/jsx.ts:7008
content?Gtk.Widget | nullThe content widget.generated/jsx.ts:7010
enableHideGesture?booleanWhether the sidebar can be closed with a swipe gesture. Only touchscreen swipes are supported.generated/jsx.ts:7016
enableShowGesture?booleanWhether the sidebar can be opened with an edge swipe gesture. Only touchscreen swipes are supported.generated/jsx.ts:7022
maxSidebarWidth?numberThe maximum sidebar width. Maximum width is affected by AdwOverlaySplitView.sidebar-width-unit. The sidebar widget can still be allocated with larger width if its own minimum width exceeds it.generated/jsx.ts:7032
minSidebarWidth?numberThe minimum sidebar width. Minimum width is affected by AdwOverlaySplitView.sidebar-width-unit. The sidebar widget can still be allocated with larger width if its own minimum width exceeds it.generated/jsx.ts:7042
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:7086
pinSidebar?booleanWhether the sidebar widget is pinned. By default, collapsing self automatically hides the sidebar widget, and uncollapsing it shows the sidebar. If set to TRUE, sidebar visibility never changes on its own.generated/jsx.ts:7050
ref?Ref<Adw.OverlaySplitView>-generated/jsx.ts:7104
showSidebar?booleanWhether the sidebar widget is shown.generated/jsx.ts:7052
sidebar?Gtk.Widget | nullThe sidebar widget.generated/jsx.ts:7054
sidebarPosition?Gtk.PackTypeThe sidebar position. If it's set to GTK_PACK_START, the sidebar is displayed before the content, if GTK_PACK_END, it's displayed after the content.generated/jsx.ts:7061
sidebarWidthFraction?numberThe preferred sidebar width as a fraction of the total width. The preferred width is additionally limited by AdwOverlaySplitView.min-sidebar-width and AdwOverlaySplitView.max-sidebar-width. The sidebar widget can be allocated with larger width if its own minimum width exceeds the preferred width.generated/jsx.ts:7072
sidebarWidthUnit?Adw.LengthUnitThe length unit for minimum and maximum sidebar widths. See AdwOverlaySplitView.min-sidebar-width and AdwOverlaySplitView.max-sidebar-width.generated/jsx.ts:7079