mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +00:00
Base: Document new TabWidget properties, and extend the example a bit
This commit is contained in:
parent
0e1c8e702c
commit
24a8a260c0
1 changed files with 15 additions and 5 deletions
|
@ -15,13 +15,23 @@ Defines a GUI tab widget.
|
||||||
```gml
|
```gml
|
||||||
@GUI::TabWidget {
|
@GUI::TabWidget {
|
||||||
uniform_tabs: true
|
uniform_tabs: true
|
||||||
|
|
||||||
|
@GUI::Widget {
|
||||||
|
title: "First tab"
|
||||||
|
}
|
||||||
|
@GUI::Widget {
|
||||||
|
title: "Second tab"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Registered Properties
|
## Registered Properties
|
||||||
|
|
||||||
| Property | Type | Possible values | Description |
|
| Property | Type | Possible values | Description |
|
||||||
|-------------------|----------------|-----------------------------------------------------------------------------|-------------------------------|
|
|--------------------|----------------|-----------------------------------------------------------------------------|--------------------------------------|
|
||||||
| container_margins | margins | | Set container margins |
|
| container_margins | margins | | Margins for the tab content |
|
||||||
| uniform_tabs | bool | true or false | Set uniform tabs |
|
| reorder_allowed | bool | true or false | Allow changing the order of the tabs |
|
||||||
| text_alignment | text_alignment | Center, CenterLeft, CenterRight, TopLeft, TopRight, BottomLeft, BottomRight | Set the alignment of tab text |
|
| show_close_buttons | bool | true or false | Show a close button on each tab |
|
||||||
|
| show_tab_bar | bool | true or false | Whether to display the tabs |
|
||||||
|
| text_alignment | text_alignment | Center, CenterLeft, CenterRight, TopLeft, TopRight, BottomLeft, BottomRight | Set the alignment of tab text |
|
||||||
|
| uniform_tabs | bool | true or false | Give all tabs the same width |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue