Files
Basalt/docs/objects/Flexbox/setDirection.md
Robert Jelic 631eef525c Flexbox docs
Updated the flexbox documentation for the current flexbox implementation
2023-05-19 15:50:05 +02:00

24 lines
399 B
Markdown

## setDirection
### 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()
:setDirection("column")
```