mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-07 18:17:23 +00:00
Base: Update Toolbar manpage
This commit is contained in:
parent
29a3ff22d7
commit
6330de15b6
Notes:
sideshowbarker
2024-07-17 06:20:10 +09:00
Author: https://github.com/frhun
Commit: 6330de15b6
Pull-request: https://github.com/SerenityOS/serenity/pull/15484
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 13 additions and 0 deletions
|
@ -6,6 +6,10 @@ GML Toolbar Widget
|
||||||
|
|
||||||
Defines a GUI toolbar widget.
|
Defines a GUI toolbar widget.
|
||||||
|
|
||||||
|
When `collapsible` is set to `true`, the toolbar can be resized below the size of its items.
|
||||||
|
Any items that do not fit the current size, will be placed in an overflow menu.
|
||||||
|
To keep groups (i.e. Buttons/items separated by Separators) together, and move them to the overflow menu as one, set the `gouped` property.
|
||||||
|
|
||||||
## Synopsis
|
## Synopsis
|
||||||
|
|
||||||
`@GUI::Toolbar`
|
`@GUI::Toolbar`
|
||||||
|
@ -15,5 +19,14 @@ Defines a GUI toolbar widget.
|
||||||
```gml
|
```gml
|
||||||
@GUI::Toolbar {
|
@GUI::Toolbar {
|
||||||
name: "toolbar"
|
name: "toolbar"
|
||||||
|
collapsible: true
|
||||||
|
grouped: true
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Registered Properties
|
||||||
|
|
||||||
|
| Property | Type | Possible values | Description |
|
||||||
|
|-------------|------|-----------------|---------------------------------------------------------------------------------------|
|
||||||
|
| collapsible | bool | true or false | If items that do not fit should be placed in an overflow menu |
|
||||||
|
| grouped | bool | true or false | If items should be moved to the overflow menu in groups, separated by Separator items |
|
Loading…
Add table
Add a link
Reference in a new issue