File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change
1
+ ## 6.4.0
2
+ ##### New Features
3
+ - ` PadRowComponent ` - the content rendered inside of a padding row. Defaults to a react component that renders ` `
4
+
1
5
## 6.3.0
2
6
##### New Features
3
7
- ` defaultSortDesc ` - allows you to set the default sorting direction for all columns to descending.
Original file line number Diff line number Diff line change @@ -195,6 +195,7 @@ These are all of the available props (and their default values) for the main `<R
195
195
// returning 0, undefined or any falsey value will use subsequent sorts or the index as a tiebreaker
196
196
return 0
197
197
},
198
+ PadRowComponent : () => < span> & nbsp;< / span> , // the content rendered inside of a padding row
198
199
199
200
// Controlled State Overrides (see Fully Controlled Component section)
200
201
page: undefined ,
Original file line number Diff line number Diff line change @@ -231,4 +231,5 @@ export default {
231
231
</ div > ,
232
232
NoDataComponent : _ . makeTemplateComponent ( 'rt-noData' ) ,
233
233
ResizerComponent : _ . makeTemplateComponent ( 'rt-resizer' ) ,
234
+ PadRowComponent : ( ) => < span > </ span > ,
234
235
}
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ export default class ReactTable extends Methods(Lifecycle(Component)) {
118
118
PivotComponent,
119
119
AggregatedComponent,
120
120
FilterComponent,
121
+ PadRowComponent,
121
122
// Data model
122
123
resolvedData,
123
124
allVisibleColumns,
@@ -159,7 +160,6 @@ export default class ReactTable extends Methods(Lifecycle(Component)) {
159
160
index
160
161
]
161
162
}
162
-
163
163
; [ pageRows ] = recurseRowsViewIndex ( pageRows )
164
164
165
165
const canPrevious = page > 0
@@ -804,7 +804,9 @@ export default class ReactTable extends Methods(Lifecycle(Component)) {
804
804
maxWidth : `${ maxWidth } px`
805
805
} }
806
806
{ ...tdProps . rest }
807
- />
807
+ >
808
+ { _ . normalizeComponent ( PadRowComponent ) }
809
+ </ TdComponent >
808
810
)
809
811
}
810
812
You can’t perform that action at this time.
0 commit comments