étui / widgets / List
hexdocs →

List

stateful

etui/widgets/list — Scrollable list with selection.

PREVIEW
▶ item one
  item two
  item three
GLEAM
let l = glist.list_new(["one", "two", "three"])
let state = glist.select_next(glist.state_new(), 3)
glist.render_stateful(buf, area, l, state)
← all widgets full markdown reference runnable examples