lustre_virtual_list

Functions

pub fn virtual_list(items items: List(a), render render_item: fn(
    a,
  ) -> Element(b), item_height item_height: Int, item_count item_count: Int, attributes attributes: List(
    Attribute(b),
  )) -> Element(b)

render a virtual list of items

items: the list of items to virtualise

render: a function that renders an item

item_height: you must specify the height of an item

item_count: you must specify how many items to render at most

attributes: optional attributes (e.g. styles)

Search Document