TableColCheckbox.d.ts 752 B

12345678910111213141516
  1. import * as React from 'react';
  2. import { AllRowsAction, RowState } from './types';
  3. interface ColumnCheckboxProps<T> {
  4. headCell?: boolean;
  5. selectableRowsComponent: 'input' | React.ReactNode;
  6. selectableRowsComponentProps: Record<string, unknown>;
  7. selectableRowDisabled: RowState<T>;
  8. keyField: string;
  9. mergeSelections: boolean;
  10. rowData: T[];
  11. selectedRows: T[];
  12. allSelected: boolean;
  13. onSelectAllRows: (action: AllRowsAction<T>) => void;
  14. }
  15. declare function ColumnCheckbox<T>({ headCell, rowData, keyField, allSelected, mergeSelections, selectedRows, selectableRowsComponent, selectableRowsComponentProps, selectableRowDisabled, onSelectAllRows, }: ColumnCheckboxProps<T>): JSX.Element;
  16. export default ColumnCheckbox;