InterfaceRenderer<ItemType, ItemKey>
interface Renderer<ItemType, ItemKey> { renderBoundary?: ((type: RenderPosition,
instance: VirtualList<ItemType, ItemKey>) => undefined | null | HTMLElement); renderEmpty?: ((type: RenderPosition,
instance: VirtualList<ItemType, ItemKey>) => undefined | null | HTMLElement); renderError?: ((type: RenderPosition,
instance: VirtualList<ItemType, ItemKey>,
error: unknown) => undefined | null | HTMLElement); renderItems: ((data: ItemType[],
instance: VirtualList<ItemType, ItemKey>) => ArrayLike<HTMLElement>); renderLoading?: ((type: RenderPosition,
instance: VirtualList<ItemType, ItemKey>) => undefined | null | HTMLElement); } Type Parameters
- ItemType extends object
- ItemKey extends keyof ItemType
Properties
渲染器。