pub fn render_list(
f: &mut Frame<'_>,
area: Rect,
title: &str,
shortcut: Option<u8>,
items: &[ListItem],
state: &mut ListState,
focused: bool,
theme: &Theme,
)Expand description
Render a scrollable, focusable list inside area.
- Uses
focusable_blockfor the outer border. - The selected row is highlighted with
Theme::selection. primarytext is left-aligned usingTheme::body.secondarytext is right-aligned usingTheme::hint.- Handles an empty
itemsslice without panicking.