Virtual Scroll โ
A generic virtual scrolling container [ยง38.1].
- Tag:
<flint-virtual-scroll> - Class:
FlintVirtualScroll
Import โ
ts
import '@getufy/flint-ui'; // auto-registers all
// or
import { FlintVirtualScroll } from '@getufy/flint-ui';Usage โ
html
<flint-virtual-scroll></flint-virtual-scroll>Properties โ
| Property | Attribute | Type | Default | Description |
|---|---|---|---|---|
items | items | T[] | [] | Array of data items to render. |
itemHeight | item-height | number | 40 | Fixed height of each item in pixels. Used for position calculations. |
overscan | overscan | number | 5 | Number of extra items to render above and below the visible area. |
renderItem | renderItem | RenderItemFn<T> | โ | Render function for a single item. Receives the item and its index. |
Slots โ
| Name | Description |
|---|---|
(default) | Fallback content shown when items is empty. |