v_virtual_list

Function v_virtual_list 

Source
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>,
) -> VirtualList
where 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 column.

See also h_virtual_list