UNPKG

rcx-virtual-list

Version:

Maximum performance for extremely large lists.<br/> Flexible, and actively maintained React library that excels with high-performance, feature-rich virtualized lists—including grouping, sticky headers, snapping, animations, and both scroll directions. Wh

17 lines (16 loc) • 788 B
/// <reference types="react" /> import { EventEmitter } from './utils/eventEmitter'; import { IRenderVirtualListItem } from "./models/render-item.model"; export declare enum VirtualListServiceEvents { VIRTUAL_LIST_ITEM_CLICK_EVENT = "item-click" } type onItemClickEvent = VirtualListServiceEvents.VIRTUAL_LIST_ITEM_CLICK_EVENT; type onItemClickListener = <E = any>(item: IRenderVirtualListItem<E> | undefined) => void; type TListeners = onItemClickListener; type TEvents = onItemClickEvent; export declare class VirtualListService extends EventEmitter<TEvents, TListeners> { constructor(); itemClick(data: IRenderVirtualListItem | undefined): void; } export declare const VirtualListContext: import("react").Context<VirtualListService | undefined>; export {};