Flexbox docs

Updated the flexbox documentation for the current flexbox implementation
This commit is contained in:
Robert Jelic
2023-05-19 15:50:05 +02:00
parent 930d2ad0c8
commit 631eef525c
16 changed files with 299 additions and 36 deletions

View File

@@ -0,0 +1,20 @@
## getDirection
### Description
Returns the current direction in which the child objects are arranged within the Flexbox.
### Returns
1. `string` The direction in which the child objects are arranged. Possible values are: row, column.
### Usage
* Creates a default Flexbox, sets the direction, and then retrieves it.
```lua
local main = basalt.createFrame()
local flexbox = mainFrame:addFlexbox()
:setDirection("column")
local direction = flexbox:getDirection() -- returns "column"
```