import { FC } from 'react';
import { Column, EventWithColumnKey, Row } from '../../../../types';
export interface TableRowProps {
/**
* The table columns to be rendered
*/
columns: Column[];
/**
* Text alignment for all table cells. Can be superseded by passing the same prop into the `Column` object
* for a specific column.
*/
align?: 'left' | 'right' | 'center';
/**
* Custom class to be applied to `
` element.
*/
className?: string;
/**
* A global placeholder for empty cells. Note: can be overwriten by
* the same attribute passed for an individual column config object.
*/
emptyCellPlaceholder?: string | number | undefined;
/**
* Whether the table has borders or not.
*/
isBorderless?: boolean;
/**
* Whether the table rows have smaller padding
*/
isCompact?: boolean;
/**
* If table scrolls vertically, header will remain stuck to the top of the table, and not scroll away.
*/
hasStickyHeader?: boolean;
/**
* Determine whether row is hoverable
*/
isHoverable?: boolean;
/**
* Whether the row is inside the table head (thead).
*/
isTableHead?: boolean;
/**
* Callback function to fire on sorting one of the table headers.
*/
onSort?: (event: EventWithColumnKey) => void;
/**
* The specific row to be rendered.
*/
row?: Row;
/**
* The unique key to identify a React node for each row.
*/
rowIndex?: number;
/**
* The key of the sorted column and its sort direction.
*/
sortedColumn?: {
dataKey: string | undefined;
sortDirection: 'none' | 'ascending' | 'descending' | undefined;
};
/**
* Truncate overflow inside column based on column width. Can be overwritten on specific columns,
* by passing `truncateOverflow` value on a specific Column
*/
truncateOverflow?: boolean;
}
export declare const TableRow: FC;