pub fn v_virtual_list<R, V>(
view: Entity<V>,
id: impl Into<ElementId>,
item_sizes: Rc<Vec<Size<Pixels>>>,
f: impl 'static + Fn(&mut V, Range<usize>, &mut Window, &mut Context<'_, V>) -> Vec<R>,
) -> VirtualListwhere
R: IntoElement,
V: Render,Expand description
Create a VirtualList in vertical direction.
This is like uniform_list in GPUI, but support two axis.
The item_sizes is the size of each row. Only the height is used; width is inferred
by measuring the item selected with VirtualList::with_item_to_measure_index, defaulting
to the first item.
See also h_virtual_list