Skip to content

Latest commit

 

History

History

egui_virtual_list

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

egui_virtual_list

egui_ver Latest version Documentation unsafe forbidden License

This crate adds a virtual list widget to egui. Egui has a basic build in virtual list in the ScrollArea widget. This crate has some extra features though:

  • Supports items with varying heights
    • Heights are calculated lazily and cached, as you scroll further down the list
  • Supports custom layouts, so you could place multiple items in a single row
  • Allows for adding items at the top without the scroll position changing

There are some limitations though:

  • If you want to support a crazy amounts of items (1000000+ items), where you can instantly jump anywhere in the list, I recommend using egui's built in ScrollArea instead.
  • Horizontal scrolling is not supported yet, but it should be easy to add if needed.

If you want to build a infinite scroll list, I recommend using the egui_infinite_scroll crate instead, which is using this crate internally.