Skip to content

Commit b1bba49

Browse files
committed
update changelog + remove rowRenderer
1 parent ddbcb1f commit b1bba49

File tree

5 files changed

+15
-38
lines changed

5 files changed

+15
-38
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# CHANGELOG
22

3+
## 1.4.0
4+
5+
_2025-04-18_
6+
7+
### Breaking
8+
9+
- removed `rowRenderer` functionality.
10+
- removed `.rft-row-container`, `.rft-outer-container`, and `.rft-inner-container`. as css class names.
11+
12+
### Bugfix
13+
14+
- on certain devices, the background color of the row did not fill the table. This should be resolved.
15+
- no need for `isHorizontalScroll` hack
16+
317
## 1.3.0
418

519
_2025-04-01_

example/src/Props.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -189,12 +189,6 @@ const data: PropData[] = [
189189
type: "(value: { row: any, index: number, event?: Event }) => void",
190190
description: "optional click handler for the rows in the table"
191191
},
192-
{
193-
prop: "rowRenderer",
194-
type: "(props: CellElement) => Element",
195-
description:
196-
"A custom element used to wrap an entire row. This provides another way of customizing each row of the table"
197-
},
198192
{
199193
prop: "footerComponent",
200194
type: "(props: FooterProps) => Element",

index.d.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -61,29 +61,6 @@ export type HeaderProps = {
6161
sortDirection: SortDirection | null;
6262
};
6363

64-
export type RowRenderProps<T> = {
65-
/**
66-
* the data for the row
67-
*/
68-
row: T;
69-
/**
70-
* the index of the row
71-
*/
72-
index: number;
73-
/**
74-
* required row position styles
75-
*/
76-
style?: CSSProperties;
77-
/**
78-
* the cells for the row
79-
*/
80-
children: ReactNode;
81-
/**
82-
* the className for the row-renderer
83-
*/
84-
className?: string;
85-
};
86-
8764
export type SubComponentProps<T> = {
8865
/**
8966
* the data for the row
@@ -358,11 +335,6 @@ export type TableProps<T> = {
358335
index: number;
359336
event?: React.MouseEvent<Element, MouseEvent>;
360337
}) => void;
361-
/**
362-
* Custom component to wrap a table row. This provides another way of providing
363-
* more row customization options.
364-
*/
365-
rowRenderer?: (props: RowRenderProps<T>) => JSX.Element;
366338
};
367339

368340
/**

src/Table.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ function BaseTable<T>(
1717
minTableHeight = 0,
1818
maxTableHeight = 0,
1919
estimatedRowHeight,
20-
rowRenderer,
2120
subComponent,
2221
footerComponent,
2322
itemKey,
@@ -75,7 +74,6 @@ function BaseTable<T>(
7574
itemKey={itemKey}
7675
rowHeight={rowHeight}
7776
onRowClick={onRowClick}
78-
rowRenderer={rowRenderer}
7977
onExpandRow={onExpandRow}
8078
tableHeight={tableHeight}
8179
maxTableHeight={maxHeight}

src/components/Row.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { forwardRef, JSX, memo } from "react";
2-
import { ColumnProps, RowRenderProps, SubComponentProps } from "../..";
2+
import { ColumnProps, SubComponentProps } from "../..";
33
import Minus from "../svg/minus-circle.svg";
44
import Plus from "../svg/plus-circle.svg";
55
import { cx } from "../util";
@@ -121,7 +121,6 @@ type RowProps<T> = {
121121
index: number;
122122
event?: React.MouseEvent<Element, MouseEvent>;
123123
}) => void;
124-
rowRenderer?: (props: RowRenderProps<T>) => JSX.Element;
125124
};
126125

127126
function BaseRow<T>(

0 commit comments

Comments
 (0)