List component displays a scrollable, filterable, paginated list in the terminal. It supports both static arrays and dynamic database-backed data sources.
Quick start
update / view:
Constructors
Item interfaces
Item— The base interface. OnlyfilterValue()is required. Use this when you supply a customItemDelegateto control rendering.DefaultItem— ExtendsItemwithtitle()anddescription(). Required when using the built-inDefaultDelegate, which renders a two-line item.
Dynamic data sources
For large or database-backed datasets, implementListDataSource instead of passing an array. The list calls fetchItems on every page change or filter update.
Custom delegates
To control how each row is rendered, implementItemDelegate:
Configuration
Key bindings
Components overview
Back to all components.
Text input
Single-line text input component.