This commit is contained in:
NoryiE
2025-10-29 16:56:08 +00:00
parent 9a5b46138e
commit 00a9ce5632
26 changed files with 812 additions and 77 deletions

View File

@@ -4,6 +4,35 @@ _The flexbox element adds the following properties to its children:_
Extends: `Container`
## Usage
```lua run
local flex = main:addFlexbox({background=colors.black, width=30, height=10})
```
```lua run
flex:addButton():setFlexGrow(1)
```
```lua run
flex:addButton():setFlexGrow(1)
```
```lua run
flex:addButton():setFlexGrow(1)
```
```lua run
flex:addButton():setFlexGrow(1) -- The flex-grow property defines the ability for a flex item to grow if necessary.
```
```lua run
flex:addButton():setFlexShrink(1) -- The flex-shrink property defines the ability for a flex item to shrink if necessary.
```
```lua run
flex:addButton():setFlexBasis(1) -- The flex-basis property defines the default size of an element before the remaining space is distributed.
```
## Properties
|Property|Type|Default|Description|