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

Type
GtkAlign
Default value
0

valign

How to position in extra vertical space

Type
GtkAlign
Default value
0

hexpand

Whether widget wants more horizontal space

Type
Boolean
Default value
False

vexpand

Whether widget wants more vertical space

Type
Boolean
Default value
False

expand

Whether widget wants to expand in both directions

Type
Boolean
Default value
False

transition-duration

Transition Duration

Type
Number
Default value
250

Slots

top-menu

The content in the menu that slides out

content

Main content of the template

The results of the search are