โ† Back to Examples

โšก Virtual Scrolling

Blazing-fast performance with 15,000 options using virtual scrolling and real-time metrics

๐Ÿš€ Large Dataset Performance

enable_virtual_scroll={true} ยท virtual_scroll_threshold={100} ยท option_height={50} ยท virtual_scroll_buffer={10}

This demo tests the component with 15,000 randomly generated options to evaluate performance under heavy load.

15,000
Total Options
โ€”
Init Time (ms)
โ€”
Render Time (ms)
โ€”
Search Time (ms)
Select 4+ items to see count badge. Click badge to see virtual scrolling in the selected items popover.
๐Ÿ’ก Performance Tips
  • Type to search - the component uses efficient string matching
  • Filter mode performs better with large datasets (hides non-matches)
  • Navigate mode shows all items but uses Ctrl+arrows for match navigation
  • Virtual scrolling keeps rendering fast even with 15,000 options
  • Try selecting multiple items and using "Clear All"

๐ŸŽจ Rich Rendering with Virtual Scroll

badge_height={50} sizes popover rows ยท option_height={70} ยท enable_virtual_scroll={true}

Testing custom rendering callbacks with 150 items to trigger virtual scrolling in the selected items popover (threshold: 100).

Select 100+ items to see virtual scroll in the popover with custom rendering. Uses renderSelectionBadgeContentCallback and getSelectionBadgeClassCallback for rich badge styling.
๐Ÿ”Œ Server round-trip
0
The LiveView server saw 0 event(s) from the wrapper.
(pick an option anywhere on this page)