Adw.Sidebar:mode
Description: Reference for property Adw.Sidebar:mode

### Property

# Adw Sidebar:mode

since: 1.9

#### Declaration

    property mode: Adw.SidebarMode [ read, write ]

#### Description [src]

Determines the sidebar’s look and behavior.

If set to `ADW_SIDEBAR_MODE_SIDEBAR`, behaves like a sidebar: with a sidebar style and a persistent selection.

If set to `ADW_SIDEBAR_MODE_PAGE`, behaves like a page of boxed lists. In this mode, the selection is invisible and only tracked to determine the initially selected item once switched back to sidebar mode.

The page mode is intended to be used with `AdwNavigationSplitView` when collapsed, as the sidebar pane becomes a page there.

When used with `AdwOverlaySplitView`, the sidebar should stay in sidebar mode, as the sidebar pane is still a sidebar when collapsed.

Type:`AdwSidebarMode`

Available since: 1.9

Default value | ADW_SIDEBAR_MODE_SIDEBAR
Getter method | `adw_sidebar_get_mode()`
Setter method | `adw_sidebar_set_mode()`

#### Flags

Readable | yes
Writable | yes
Construct | no
Construct only | no