import React from 'react'; import { RowData } from '../Table.types'; export interface RowCustomClassNames { tableRow?: string; tableCell?: string; cellContent?: string; expandableContent?: string; } export interface TableRowProps
{
rowIndex: number;
/** Custom classNames for å overskrive styling */
customClassNames?: RowCustomClassNames;
/**
* hideExpand; expandable is disabled for row,
* hideEdit: edit is disalbed for row,
* hideSeparator: hides separator for row
*
* @type P & {
hideExpand?: boolean;
hideEdit?: boolean;
hideSeparator?: boolean;
}
* */
data: P;
editableContent?: (data: P, onCloseRow: () => void, rowIndex: number) => React.ReactNode;
editableRows: boolean | Array (props: TableRowProps ) => JSX.Element;
export default TableRow;