Skip to content

ListView

Added in version 0.6.0

Displays a vertical list of ListItems which can be highlighted and selected. Supports keyboard navigation.

  • Focusable
  • Container

Example

The example below shows an app with a simple ListView.

ListViewExample One Two Three ^p palette

from textual.app import App, ComposeResult
from textual.widgets import Footer, Label, ListItem, ListView