Name | Code (Block) | Code (Text) |
---|---|---|
List Scrolling Pattern |
Many App Lab projects run in the following way.
This pattern allows a user to "scroll" through all the items in the list. In order to make it work, create an index variable and a list. Then use the "Counter Pattern with Boundary" pattern to create event handlers to change the value of the index.
This pattern makes sense to use with the updateScreen
pattern since you will need at least two buttons for scrolling left and right through the list but afterwards will use the same code to update the screen.
Found a bug in the documentation? Let us know at documentation@code.org