TableCol.d.ts 1.2 KB

123456789101112131415161718192021222324
  1. import * as React from 'react';
  2. import { TableColumn, SortAction, SortOrder } from './types';
  3. type TableColProps<T> = {
  4. column: TableColumn<T>;
  5. disabled: boolean;
  6. draggingColumnId?: string | number;
  7. sortIcon?: React.ReactNode;
  8. pagination: boolean;
  9. paginationServer: boolean;
  10. persistSelectedOnSort: boolean;
  11. selectedColumn: TableColumn<T>;
  12. sortDirection: SortOrder;
  13. sortServer: boolean;
  14. selectableRowsVisibleOnly: boolean;
  15. onSort: (action: SortAction<T>) => void;
  16. onDragStart: (e: React.DragEvent<HTMLDivElement>) => void;
  17. onDragOver: (e: React.DragEvent<HTMLDivElement>) => void;
  18. onDragEnd: (e: React.DragEvent<HTMLDivElement>) => void;
  19. onDragEnter: (e: React.DragEvent<HTMLDivElement>) => void;
  20. onDragLeave: (e: React.DragEvent<HTMLDivElement>) => void;
  21. };
  22. declare function TableCol<T>({ column, disabled, draggingColumnId, selectedColumn, sortDirection, sortIcon, sortServer, pagination, paginationServer, persistSelectedOnSort, selectableRowsVisibleOnly, onSort, onDragStart, onDragOver, onDragEnd, onDragEnter, onDragLeave, }: TableColProps<T>): JSX.Element | null;
  23. declare const _default: typeof TableCol;
  24. export default _default;