added cell background of empty rows (#6353)
* added cell background of empty rows
This commit is contained in:
parent
b892712685
commit
1021c18dd5
|
|
@ -329,9 +329,12 @@ export const renderEmptyRows = (
|
|||
<div {...rowProps} className="tr" key={index}>
|
||||
{multiRowSelection && renderCheckBoxCell(false)}
|
||||
{row.cells.map((cell: any, cellIndex: number) => {
|
||||
return (
|
||||
<div {...cell.getCellProps()} className="td" key={cellIndex} />
|
||||
);
|
||||
const cellProps = cell.getCellProps();
|
||||
if (columns[0]?.columnProperties?.cellBackground) {
|
||||
cellProps.style.background =
|
||||
columns[0].columnProperties.cellBackground;
|
||||
}
|
||||
return <div {...cellProps} className="td" key={cellIndex} />;
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user