| 1 |
/// <reference types="react" /> |
| 2 |
import { RowKeyType } from '../../../components/Table/base/types'; |
| 3 |
import { IRow, IExtraRowData } from '../../../components'; |
| 4 |
export interface IComputedData { |
| 5 |
isInput: boolean; |
| 6 |
isButton: boolean; |
| 7 |
} |
| 8 |
export type OnRowClick = (event: React.KeyboardEvent | React.MouseEvent, row: IRow, rowProps: IExtraRowData, computedData: IComputedData) => void; |
| 9 |
export interface TableBodyProps { |
| 10 |
/** Additional classes added to the TableBody */ |
| 11 |
className?: string; |
| 12 |
/** @hide This prop should not be set manually */ |
| 13 |
children?: React.ReactNode; |
| 14 |
/** @hide This prop should not be set manually */ |
| 15 |
headerData?: IRow[]; |
| 16 |
/** @hide This prop should not be set manually */ |
| 17 |
rows?: IRow[]; |
| 18 |
/** @hide This prop should not be set manually */ |
| 19 |
rowKey?: RowKeyType; |
| 20 |
/** A click handler for the row */ |
| 21 |
onRowClick?: OnRowClick; |
| 22 |
/** @hide This prop should not be set manually */ |
| 23 |
onRow?: Function; |
| 24 |
/** Flag indicating the <tbody> contains oddly striped rows. */ |
| 25 |
isOddStriped?: boolean; |
| 26 |
/** Flag indicating the <tbody> contains evenly striped rows. */ |
| 27 |
isEvenStriped?: boolean; |
| 28 |
} |
| 29 |
export declare const TableBody: ({ className, children, rowKey, onRow, onRowClick, ...props }: TableBodyProps) => import("react/jsx-runtime").JSX.Element; |
| 30 |
//# sourceMappingURL=Body.d.ts.map |