pub fn focus_item_num<L: ListViewer + ?Sized>(
this: &mut L,
item: i32,
ctx: &mut Context<'_>,
)Expand description
Clamp item into the valid range, then focus it (only when the list is
non-empty).
item < 0 → 0; item >= range && range > 0 → range - 1; then focus it only
when the range is non-empty.