File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 11# Changelog
2+ ## [ 31.2.0] - 2025-09-11
3+ - ReportDataGrid, ReportDataGrids - add showRowCount option. Per report using Datagrid footer.
24## [ 31.1.5] - 2025-09-05
35- ReportDataGrid - replace obsolete header option
46## [ 31.1.4] - 2025-08-26
Original file line number Diff line number Diff line change 11{
22 "name" : " @linn-it/linn-form-components-library" ,
3- "version" : " 31.1.5 " ,
3+ "version" : " 31.2.0 " ,
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 @@ -13,7 +13,8 @@ function ReportDataGrid({
1313 showExport = false ,
1414 showTotals = false ,
1515 openLinksInNewTabs = true ,
16- fixedRowHeight = false
16+ fixedRowHeight = false ,
17+ showRowCount = false
1718} ) {
1819 // Rendering cell with drill-down functionality
1920 const renderCell = params => {
@@ -175,7 +176,7 @@ function ReportDataGrid({
175176 getRowHeight = { ( ) => ( fixedRowHeight ? 30 : 'auto' ) }
176177 disableRowSelectionOnClick
177178 getRowClassName = { getRowClass }
178- hideFooter = { report . results . length <= 100 }
179+ hideFooter = { report . results . length <= 100 && ! showRowCount }
179180 sx = { {
180181 [ `& .${ gridClasses . cell } ` ] : {
181182 py : 1 ,
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ function ReportDataGrids({
1010 perReportExport = false ,
1111 openLinksInNewTabs = true ,
1212 showTotals = false ,
13- fixedRowHeight = false
13+ fixedRowHeight = false ,
14+ showRowCount = false
1415} ) {
1516 return (
1617 < >
@@ -25,6 +26,7 @@ function ReportDataGrids({
2526 titleVariant = { titlesVariant }
2627 showHeader = { repeatHeaders || i === 0 }
2728 openLinksInNewTabs = { openLinksInNewTabs }
29+ showRowCount = { showRowCount }
2830 />
2931 ) ) }
3032 </ >
You can’t perform that action at this time.
0 commit comments