List

It displays a vertical collection of rows, optionally with a caption and footer. A click handler can be attached to individual entries.

Constructors

List

List creates a new TList with the given entries as rows.


Methods

MethodDescription
Caption(s core.View)Caption sets an optional caption view above the list.
Footer(s core.View)Footer sets an optional footer view below the list.
Frame(frame ui.Frame)Frame sets the layout frame of the list.
FullWidth()FullWidth expands the list to use the full available width.
OnEntryClicked(fn func(idx int))OnEntryClicked sets a callback for when a row is clicked.