UNPKG

react-smart-data-table

Version:

A smart data table component for React.js meant to be configuration free

19 lines (18 loc) 862 B
import type { MouseEvent, ReactNode } from 'react'; import type { Column, Headers, ParseBool, ParseImg, UnknownObject } from '../helpers/functions'; interface DataRowProps<T> { row: T; rowIndex: number; columns: Column<T>[]; colProperties: Headers<T>; withLinks: boolean; filterValue: string; parseBool: boolean | ParseBool; parseImg: boolean | ParseImg; onRowClick: (event: MouseEvent<HTMLElement>, rowData: T, rowIndex: number, tableData: T[]) => void; rowClassName?: (rowData: T, rowIndex: number, tableData: T[]) => string; tableData: T[]; } declare function DataRowInner<T = UnknownObject>({ row, rowIndex, columns, colProperties, withLinks, filterValue, parseBool, parseImg, onRowClick, rowClassName, tableData, }: DataRowProps<T>): ReactNode; declare const DataRow: typeof DataRowInner; export default DataRow;