Skip to main content

render_picker

Function render_picker 

Source
pub fn render_picker<'a>(
    f: &mut Frame<'_>,
    area: Rect,
    title: &str,
    items: &[PickerItem],
    state: &PickerState,
    detail: Vec<Line<'a>>,
    total_count: usize,
    theme: &Theme,
)
Expand description

Render a two-column picker inside area.

  • title — label shown on the search box border.
  • items — pre-filtered list of items to display.
  • state — current search/selection state.
  • detail — lines to render in the right-hand detail pane. Computed by the caller from items[state.selected].
  • total_count — total (unfiltered) item count, shown as n/total in list title.