File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed
Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 11# Changelog
2+ ## [ 31.2.1] - 2025-09-16
3+ - ReportDataGrid - change showRowCount option to display below the grid.
24## [ 31.2.0] - 2025-09-11
35- ReportDataGrid, ReportDataGrids - add showRowCount option. Per report using Datagrid footer.
46## [ 31.1.5] - 2025-09-05
Original file line number Diff line number Diff line change 11{
22 "name" : " @linn-it/linn-form-components-library" ,
3- "version" : " 31.2.0 " ,
3+ "version" : " 31.2.1 " ,
44 "private" : false ,
55 "main" : " dist/index.cjs.js" ,
66 "module" : " dist/index.esm.js" ,
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ function ReportDataGrid({
176176 getRowHeight = { ( ) => ( fixedRowHeight ? 30 : 'auto' ) }
177177 disableRowSelectionOnClick
178178 getRowClassName = { getRowClass }
179- hideFooter = { report . results . length <= 100 && ! showRowCount }
179+ hideFooter = { report . results . length <= 100 }
180180 sx = { {
181181 [ `& .${ gridClasses . cell } ` ] : {
182182 py : 1 ,
@@ -194,6 +194,19 @@ function ReportDataGrid({
194194 } }
195195 />
196196 </ Grid >
197+ { showRowCount && report && report . results && (
198+ < Grid size = { 12 } sx = { { mt : - 1.25 } } >
199+ < Typography
200+ variant = "body2"
201+ sx = { {
202+ float : 'left' ,
203+ pl : 2
204+ } }
205+ >
206+ Number of rows: { report . results . length }
207+ </ Typography >
208+ </ Grid >
209+ ) }
197210 </ Grid >
198211 ) ;
199212}
You can’t perform that action at this time.
0 commit comments