Class VirtualListNode
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
List virtualization node for large item collections. Renders a ScrollView of fixed-height items and keeps only the items in view present in the DOM to ensure performance.
public sealed class VirtualListNode : VNode
- Inheritance
-
objectVirtualListNode
- Inherited Members
Constructors
- VirtualListNode(IReadOnlyList<object>, Func<object, string>, float, Func<object, VNode>, int)
Creates a virtualized list. Prefer the VirtualList<T>(IReadOnlyList<T>, Func<T, string>, float, Func<T, VNode>, int, string?, string?, string?) factory; this is the type-erased form it builds.
Properties
- ClassNames
Array of USS class names applied to the ScrollView.
- ItemHeight
Fixed height (px) of each item.
- Items
Item list (type-erased).
- KeySelector
Function that returns a unique key for each item.
- Name
ScrollView.name (for USS #selector).
- Overscan
Number of extra items to render outside the visible range.
- Renderer
Function that produces a VNode from each item.