Row
A container to have components on the same horizontal row.
Updates
- children.
columnWidth number or nil (nil)
- A whole number between
1 and 12, the sum of the row should add up to 12. If you use nil, they will attempt to equalise the width between children. You can freely mix values.
Examples
-- Within a child component
{
columnWidth = 4,
}
-- For example:
local row = card:newRow()
row
:newContainer({ columnWidth = 4 })
:addText({ text = "1st" })
.back
:newContainer({ columnWidth = 4 })
:addText({ text = "2nd" })
.back
:newContainer({ columnWidth = 4 })
:addText({ text = "3rd" })
.back