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

499 B

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.
local main = basalt.createFrame()
local flexbox = mainFrame:addFlexbox()
      :setDirection("column")
local direction = flexbox:getDirection() -- returns "column"