UNPKG

@adaptabletools/adaptable

Version:

Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

13 lines (12 loc) 745 B
import * as React from 'react'; import { useVirtualizer } from '@tanstack/react-virtual'; import { ComboboxItemType } from './comboboxUtils'; import { ComboboxPrimitive } from '../ui/combobox'; export type Virtualizer = ReturnType<typeof useVirtualizer<HTMLDivElement, Element>>; export declare function VirtualizedList<T extends ComboboxItemType>({ open, virtualizerRef, showItemTooltip, renderCheckboxIndicator, renderItemLabel, }: { open: boolean; virtualizerRef: React.RefObject<Virtualizer | null>; showItemTooltip?: boolean; renderCheckboxIndicator?: boolean | null | ComboboxPrimitive.ItemIndicator.Props['render']; renderItemLabel?: (defaultLabel: React.ReactNode, item: T) => React.ReactNode; }): React.JSX.Element;