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
factory-id
Module ID
- Type
- String
- Default value
factory-path
Path indicating where a module comes from in the app.json
- Type
- String
- Default value
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
hide-on-scroll
Whether to hide the menu after scrolling down on content.
- Type
- Boolean
- Default value
- True
Slots
content
Main content of the template
- Required
- yes
The results of the search are