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 @@
## setSpacing
### Description
Sets the space between objects
### Parameters
1. `number` Number of pixels of spacing between each object - default is 1
### Returns
1. `object` The object in use
### Usage
* Creates a default flexbox and sets the spacing to 5 pixels.
```lua
local main = basalt.createFrame()
local flexbox = mainFrame:addFlexbox()
:setSpacing(5)
```