gleamtea/list
A bubble: a scrollable, selectable list.
Types
Values
pub fn new(
items items: List(String),
title title: String,
height height: Int,
) -> Listbox
A list of the given items, with a title and a number of visible rows.
pub fn selected(list: Listbox) -> Result(#(Int, String), Nil)
The #(index, item) currently under the cursor, or Error(Nil) if empty.
pub fn update(
msg: msg,
list: Listbox,
) -> #(Listbox, gleamtea.Cmd(msg))
Move the selection in response to a key; ignore everything else.