Need help?
Ask a question or report a problem on GitHub.
Open an issue
row
A container that lays its children out side by side, from left to right.
Syntax
Otter
create row into name
Properties
Output
width number Width in pixels height number Height in pixels background color Background color spacing number The gap between the children padding number The space between the edge and the children align word top, middle or bottom (the cross direction), or left, center, right spread flag Push the children apart to fill the width
Example
Otter
create window into app title of app is "Toolbar" create row into toolbar spacing of toolbar is 8 create button into openButton text of openButton is "Open" create button into saveButton text of saveButton is "Save" put openButton in toolbar put saveButton in toolbar put toolbar in app show app
Expected result
The Open and Save buttons sit next to each other with an 8 pixel gap.
column Layout