TableCellCheckbox.d.ts 748 B

12345678910111213141516
  1. import * as React from 'react';
  2. import { RowState, SingleRowAction, ComponentProps } from './types';
  3. type TableCellCheckboxProps<T> = {
  4. name: string;
  5. keyField: string;
  6. row: T;
  7. rowCount: number;
  8. selected: boolean;
  9. selectableRowsComponent: 'input' | React.ReactNode;
  10. selectableRowsComponentProps: ComponentProps;
  11. selectableRowsSingle: boolean;
  12. selectableRowDisabled: RowState<T>;
  13. onSelectedRow: (action: SingleRowAction<T>) => void;
  14. };
  15. declare function TableCellCheckbox<T>({ name, keyField, row, rowCount, selected, selectableRowsComponent, selectableRowsComponentProps, selectableRowsSingle, selectableRowDisabled, onSelectedRow, }: TableCellCheckboxProps<T>): JSX.Element;
  16. export default TableCellCheckbox;