Flexbox docs
Updated the flexbox documentation for the current flexbox implementation
This commit is contained in:
23
docs/objects/Flexbox/setDirection.md
Normal file
23
docs/objects/Flexbox/setDirection.md
Normal file
@@ -0,0 +1,23 @@
|
||||
## 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")
|
||||
```
|
||||
Reference in New Issue
Block a user