Need help?
Ask a question or report a problem on GitHub.
Open an issue
scroll
A container that scrolls when its content is bigger than the space it has. It holds exactly one child - usually a column.
Syntax
Otter
create scroll into name
Properties
Output
width number Width in pixels height number Height in pixels background color Background color
A scroll has no spacing, because it holds a single child; put a column inside it and give the column the spacing.
Example
Otter
create window into app title of app is "Long list" create scroll into scroller height of scroller is 200 create column into items spacing of items is 6 create text into first text of first is "First" create text into second text of second is "Second" create text into third text of third is "Third" put first in items put second in items put third in items put items in scroller put scroller in app show app
column Layout