This commit is contained in:
Sabine Lim
2023-05-08 18:56:12 +10:00
parent 3de3fbecb3
commit 166a234bd2
2 changed files with 26 additions and 1 deletions

View File

@@ -0,0 +1,23 @@
## setJustifyContent
### Description
Determines how the children are aligned along the off axis
### Parameters
1. `string` One of ("flex-start", "flex-end", "center", "space-between", "space-around") - default is flex-start. Works the same as the property of the same name in [CSS flexboxes](https://css-tricks.com/snippets/css/a-guide-to-flexbox/#aa-flexbox-properties)
### Returns
1. `object` The object in use
### Usage
* Creates a default flexbox and sets the align items to space-between.
```lua
local main = basalt.createFrame()
local flexbox = mainFrame:addFlexbox()
:setAlignItems("space-between")
```