select (cellium v0.1.0)

View Source

A dropdown select widget that displays a list of options over the top of other widgets.

When closed, it displays the currently selected item. When activated (Enter), it opens a boxed list of options. The user can navigate these options with arrow keys and confirm the selection with Enter.

Summary

Functions

handle_event/2

-spec handle_event(term(), map()) -> map().

new(Id)

-spec new(term()) -> map().

new(Id, Options)

-spec new(term(), [term()]) -> map().

render(Widget, Buffer)

-spec render(map(), map()) -> map().

render_focused(Widget, Buffer)

-spec render_focused(map(), map()) -> map().

render_overlay/2

-spec render_overlay(map(), map()) -> map().