ComboboxVirtualizer
Overview
Virtualizes the list of items inside ComboboxViewport for large datasets. Requires manual filtering of options before passing them in.
Uses a render function (not a template) to pass slots directly to reka-ui's ComboboxVirtualizer without adding an extra renderSlot Fragment layer. A template-based wrapper would produce two nested Fragments, causing ListboxVirtualizer's depth-1 VNode search to return undefined and crash.
Props
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| options | array | yes | List of items to render. | |
| estimateSize | number|func | undefined | Estimated size (in px) of each item. | |
| overscan | number | undefined | Number of items rendered outside the visible area. | |
| textContent | func | undefined | Text content for each item to achieve type-ahead feature. |
Source
client/lib/controls/combobox/ComboboxVirtualizer.vue