From 05c92921d47de735366dc04e96ae6fe5f9559e15 Mon Sep 17 00:00:00 2001 From: Tim Chamberlain Date: Wed, 19 Apr 2023 12:12:58 -0500 Subject: [PATCH] added footer html to tables --- package.json | 2 +- src/qqq/components/widgets/DashboardWidgets.tsx | 1 + src/qqq/components/widgets/Widget.tsx | 9 ++++++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index d42e8ea..3d122a7 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "@auth0/auth0-react": "1.10.2", "@emotion/react": "11.7.1", "@emotion/styled": "11.6.0", - "@kingsrook/qqq-frontend-core": "1.0.56", + "@kingsrook/qqq-frontend-core": "1.0.57", "@mui/icons-material": "5.4.1", "@mui/material": "5.11.1", "@mui/styles": "5.11.1", diff --git a/src/qqq/components/widgets/DashboardWidgets.tsx b/src/qqq/components/widgets/DashboardWidgets.tsx index 555706b..9929d40 100644 --- a/src/qqq/components/widgets/DashboardWidgets.tsx +++ b/src/qqq/components/widgets/DashboardWidgets.tsx @@ -225,6 +225,7 @@ function DashboardWidgets({widgetMetaDataList, tableName, entityPrimaryKey, omit widgetMetaData={widgetMetaData} widgetData={widgetData[i]} reloadWidgetCallback={(data) => reloadWidget(i, data)} + footerHTML={widgetData[i]?.footerHTML} isChild={areChildren} > void; isChild?: boolean; + footerHTML?: string; storeDropdownSelections?: boolean; } @@ -398,6 +400,11 @@ function Widget(props: React.PropsWithChildren): JSX.Element ) ) } + { + props?.footerHTML && ( + {parse(props.footerHTML)} + ) + } ; return props.widgetMetaData?.isCard ? {widgetContent} : widgetContent;