TableCell.d.ts 771 B

123456789101112131415161718
  1. import * as React from 'react';
  2. import { TableColumn } from './types';
  3. interface CellProps<T> {
  4. id: string;
  5. dataTag: string | null;
  6. column: TableColumn<T>;
  7. row: T;
  8. rowIndex: number;
  9. isDragging: boolean;
  10. onDragStart: (e: React.DragEvent<HTMLDivElement>) => void;
  11. onDragOver: (e: React.DragEvent<HTMLDivElement>) => void;
  12. onDragEnd: (e: React.DragEvent<HTMLDivElement>) => void;
  13. onDragEnter: (e: React.DragEvent<HTMLDivElement>) => void;
  14. onDragLeave: (e: React.DragEvent<HTMLDivElement>) => void;
  15. }
  16. declare function Cell<T>({ id, column, row, rowIndex, dataTag, isDragging, onDragStart, onDragOver, onDragEnd, onDragEnter, onDragLeave, }: CellProps<T>): JSX.Element;
  17. declare const _default: typeof Cell;
  18. export default _default;