Raxol.UI.Layout.ListScrollContent (Raxol v2.6.0)

View Source

Default ScrollContent adapter that wraps a plain list.

Provides backwards compatibility -- existing Viewport usage with a list of children works unchanged by wrapping the list in this adapter.

Summary

Functions

Wraps a list of elements as a ScrollContent source.

Types

t()

@type t() :: %Raxol.UI.Layout.ListScrollContent{items: [map()]}

Functions

new(items)

@spec new([map()]) :: t()

Wraps a list of elements as a ScrollContent source.