hightable
Version:
A dynamic windowed scrolling table component for react
25 lines (24 loc) • 936 B
TypeScript
import { MouseEvent } from 'react';
interface Props {
onDoubleClick?: (event: MouseEvent) => void;
onMouseDown?: (event: MouseEvent) => void;
stringify: (value: unknown) => string | undefined;
value: any;
columnIndex: number;
hasResolved: boolean;
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.stringify function to stringify the value
* @param props.hasResolved function to get the column style
* @param props.className optional class name
*/
export default function Cell({ onDoubleClick, onMouseDown, stringify, columnIndex, value, hasResolved, className }: Props): import("react/jsx-runtime").JSX.Element;
export {};