UNPKG

hightable

Version:

A dynamic windowed scrolling table component for react

33 lines (32 loc) 1.35 kB
import { KeyboardEvent, MouseEvent } from 'react'; interface Props { onDoubleClick?: (event: MouseEvent) => void; onMouseDown?: (event: MouseEvent) => void; onKeyDown?: (event: KeyboardEvent) => void; stringify: (value: unknown) => string | undefined; value: any; columnIndex: number; hasResolved: boolean; ariaColIndex: number; ariaRowIndex: number; dataRowIndex?: number; className?: string; } /** * Render a table cell <td> with title and optional custom rendering * * @param props * @param props.value cell value * @param props.columnIndex column index in the dataframe (0-based) * @param props.onDoubleClick double click callback * @param props.onMouseDown mouse down callback * @param props.onKeyDown key down callback * @param props.stringify function to stringify the value * @param props.hasResolved function to get the column style * @param props.ariaColIndex aria col index * @param props.ariaRowIndex aria row index * @param props.dataRowIndex optional, index of the row in the dataframe (0-based) * @param props.className optional class name */ export default function Cell({ onDoubleClick, onMouseDown, onKeyDown, stringify, columnIndex, value, hasResolved, className, ariaColIndex, ariaRowIndex, dataRowIndex }: Props): import("react/jsx-runtime").JSX.Element; export {};