Layout.TopMenu

Classes

Layout.TopMenu

This layout template has one slot for its main content and a slot for the top menu bar.

The top menu starts out visible and then slides upwards, out of sight as the user scrolls down the page (assuming content is a scrolling template). When the user scrolls back up, the top menu slides out and becomes visible again.

Implements:

Properties

halign

How to position in extra horizontal space

Default value
0
Type
GtkAlign

valign

How to position in extra vertical space

Default value
0
Type
GtkAlign

hexpand

Whether widget wants more horizontal space

Default value
False
Type
Boolean

vexpand

Whether widget wants more vertical space

Default value
False
Type
Boolean

expand

Whether widget wants to expand in both directions

Default value
False
Type
Boolean

transition-duration

Transition Duration

Default value
250
Type
Number

hide-on-scroll

Whether to hide the menu after scrolling down on content.

Default value
True
Type
Boolean

Slots

top-menu

The content in the menu that slides out

Required
yes

content

Main content of the template

Required
yes

The results of the search are