grid
A grid container. It takes the same properties as a panel.
Syntax
Otter
create grid into name
Properties
Output
width number Width in pixels
height number Height in pixels
background color Background color
spacing number The gap between the controls inside it
padding number The space between the edge and the controls
align word Alignment of what is inside
spread flag Distribute the controls apart
Example
Otter
create window into app
title of app is "Grid"
create grid into board
padding of board is 8
create text into label
text of label is "Inside a grid"
put label in board
put board in app
show app
For most layouts, rows and columns are simpler than a grid.
row
column