Class VirtualListHandle
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
The imperative API of a mounted VirtualList<T>(IReadOnlyList<T>, Func<T, string>, float, Func<T, VNode>, bool, int, string?, string?, string?, Ref<VirtualListHandle>?, FiberEventBinding[]?),
set on the list's listRef — the counterpart of react-window's listRef.
public sealed class VirtualListHandle
- Inheritance
-
objectVirtualListHandle
Properties
- Element
The list's ScrollView.
Methods
- ScrollToItem(int, VirtualListAlign)
Scrolls the list so the item at
indexsits wherealignputs it in the viewport the list's last layout gave it. A disposed handle does nothing.
- ScrollToItem(int, VirtualListAlign, VirtualListScrollBehavior)
Scrolls to an item using the requested movement behavior. A disposed handle does nothing.