File tree Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Expand file tree Collapse file tree 4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 11# CHANGELOG
22
3+ ## 1.5.2
4+
5+ _ 2025-08-28_
6+
7+ ### Features
8+
9+ - added ` widths ` prop to the SubComponent
10+
311## 1.5.1
412
513_ 2025-06-16_
Original file line number Diff line number Diff line change @@ -74,6 +74,10 @@ export type SubComponentProps<T> = {
7474 * whether or not the row is expanded
7575 */
7676 isExpanded : boolean ;
77+ /**
78+ * exposes the widths of each column to the sub component
79+ */
80+ widths : number [ ] ;
7781} ;
7882
7983export type FooterProps < T > = {
Original file line number Diff line number Diff line change 11{
22 "name" : " react-fluid-table" ,
3- "version" : " 1.5.1 " ,
3+ "version" : " 1.5.2 " ,
44 "description" : " A React table inspired by @tanstack/react-virtual" ,
55 "author" : " Mckervin Ceme <mckervinc@live.com>" ,
66 "license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ function BaseRow<T>(
167167 ) ) }
168168 { ! ! SubComponent && (
169169 < div className = { cx ( "rft-sub-component" , ! isExpanded && "rft-hidden" ) } >
170- < SubComponent row = { row } index = { index } isExpanded = { isExpanded } />
170+ < SubComponent row = { row } index = { index } isExpanded = { isExpanded } widths = { pixelWidths } />
171171 </ div >
172172 ) }
173173 </ div >
You can’t perform that action at this time.
0 commit comments