List (ListItem) Example

widget_list

Demonstrates a selectable list with extensive configuration options.

Lists are the workhorse of terminal interfaces. Managing selection state, scrolling windows, and highlight styles logic is complex. The List widget handles all of this.

Features Demonstrated

Hotkeys

Usage

ruby examples/widget_list/app.rb

Learning Outcomes

Use this example if you need to…

Read the source code →