lustre_virtual_list
Functions
pub fn register() -> Nil
call this at the beginning of your program to register the virtual list component
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)