Skip to main content

virtual_list

Function virtual_list 

Source
pub fn virtual_list<'a, T, Message>(
    state: &'a State<T>,
    row: impl Fn(usize, &'a T) -> Element<'a, Message> + 'a,
) -> VirtualList<'a, T, Message>
Available on crate feature virtual-list only.
Expand description

Renders state, drawing each row with row, which gets the item’s index and the item. Without on_event the rows render disabled.