Skip to content

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

NameTypeRequiredDefaultDescription
optionsarrayyesList of items to render.
estimateSizenumber|funcundefinedEstimated size (in px) of each item.
overscannumberundefinedNumber of items rendered outside the visible area.
textContentfuncundefinedText content for each item to achieve type-ahead feature.

Source

client/lib/controls/combobox/ComboboxVirtualizer.vue

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2