UNPKG

es-grid-template

Version:

es-grid-template

17 lines (16 loc) 713 B
import type { Cell, Table } from "@tanstack/react-table"; import type { CommandClick } from "../../grid-component/type"; import React from "react"; import type { VirtualItem, Virtualizer } from "@tanstack/react-virtual"; interface TableBodyCellProps<T> { table: Table<T>; rowVirtualizer: Virtualizer<HTMLDivElement, HTMLDivElement>; columnVirtualizer: Virtualizer<HTMLDivElement, HTMLDivElement>; tableId: string; cell: Cell<T, unknown>; commandClick?: (args: CommandClick<T>) => void; virtualRow: VirtualItem; [key: string]: any; } declare const TableBodyCell: <RecordType extends object>(props: TableBodyCellProps<RecordType>) => React.JSX.Element; export default TableBodyCell;