UNPKG

svelte-tiny-virtual-list

Version:

A tiny but mighty list virtualization component for svelte, with zero dependencies 💪

115 lines (114 loc) • 2.99 kB
/** @typedef {typeof __propDef.props} VirtualListProps */ /** @typedef {typeof __propDef.events} VirtualListEvents */ /** @typedef {typeof __propDef.slots} VirtualListSlots */ export default class VirtualList extends SvelteComponent<{ itemSize: any; itemCount: any; height: any; estimatedItemSize?: any; overscanCount?: number; width?: string; stickyIndices?: any; getKey?: any; scrollDirection?: string; scrollOffset?: any; scrollToIndex?: any; scrollToAlignment?: any; scrollToBehaviour?: string; recomputeSizes?: (startIndex?: number) => void; }, { itemsUpdated: CustomEvent<any>; afterScroll: CustomEvent<any>; } & { [evt: string]: CustomEvent<any>; }, { header: {}; item: { style: any; index: any; }; footer: {}; }> { get recomputeSizes(): (startIndex?: number) => void; /**accessor*/ set height(_: any); get height(): any; /**accessor*/ set width(_: string); get width(): string; /**accessor*/ set itemCount(_: any); get itemCount(): any; /**accessor*/ set itemSize(_: any); get itemSize(): any; /**accessor*/ set estimatedItemSize(_: any); get estimatedItemSize(): any; /**accessor*/ set stickyIndices(_: any); get stickyIndices(): any; /**accessor*/ set getKey(_: any); get getKey(): any; /**accessor*/ set scrollDirection(_: string); get scrollDirection(): string; /**accessor*/ set scrollOffset(_: any); get scrollOffset(): any; /**accessor*/ set scrollToIndex(_: any); get scrollToIndex(): any; /**accessor*/ set scrollToAlignment(_: any); get scrollToAlignment(): any; /**accessor*/ set scrollToBehaviour(_: string); get scrollToBehaviour(): string; /**accessor*/ set overscanCount(_: number); get overscanCount(): number; /**accessor*/ set undefined(_: any); get undefined(): any; } export type VirtualListProps = typeof __propDef.props; export type VirtualListEvents = typeof __propDef.events; export type VirtualListSlots = typeof __propDef.slots; import { SvelteComponent } from "svelte"; declare const __propDef: { props: { itemSize: any; itemCount: any; height: any; estimatedItemSize?: any; overscanCount?: number; width?: string; stickyIndices?: any; getKey?: any; scrollDirection?: string; scrollOffset?: any; scrollToIndex?: any; scrollToAlignment?: any; scrollToBehaviour?: string; recomputeSizes?: (startIndex?: number) => void; }; events: { itemsUpdated: CustomEvent<any>; afterScroll: CustomEvent<any>; } & { [evt: string]: CustomEvent<any>; }; slots: { header: {}; item: { style: any; index: any; }; footer: {}; }; exports?: {}; bindings?: string; }; export {};