Flexbox docs

This commit is contained in:
Sabine Lim
2023-05-08 07:00:28 +10:00
parent e2bead28cb
commit c9ff68dd9e
5 changed files with 110 additions and 6 deletions

View File

@@ -0,0 +1,23 @@
## setFlexDirection
### Description
Sets the direction in which the children will be placed
### Parameters
1. `string` One of ("row", "column") - default is row
### Returns
1. `object` The object in use
### Usage
* Creates a default flexbox and sets the flex direction to column.
```lua
local main = basalt.createFrame()
local flexbox = mainFrame:addFlexbox()
:setFlexDirection("column")
```