CE-604 Add support for layoutType TABS

This commit is contained in:
2023-10-20 10:30:51 -05:00
parent 9313988f9b
commit 970c9f262c

View File

@ -43,6 +43,7 @@ export interface ParentWidgetData
dropdownNeedsSelectedText?: string; dropdownNeedsSelectedText?: string;
storeDropdownSelections?: boolean; storeDropdownSelections?: boolean;
icon?: string; icon?: string;
layoutType: string;
} }
@ -112,7 +113,7 @@ function ParentWidget({urlParams, widgetMetaData, widgetIndex, data, reloadWidge
reloadWidgetCallback={parentReloadWidgetCallback} reloadWidgetCallback={parentReloadWidgetCallback}
> >
<Box sx={{height: "100%", width: "100%"}} px={px}> <Box sx={{height: "100%", width: "100%"}} px={px}>
<DashboardWidgets widgetMetaDataList={widgets} entityPrimaryKey={entityPrimaryKey} tableName={tableName} childUrlParams={childUrlParams} areChildren={true} parentWidgetMetaData={widgetMetaData}/> <DashboardWidgets widgetMetaDataList={widgets} entityPrimaryKey={entityPrimaryKey} tableName={tableName} childUrlParams={childUrlParams} areChildren={true} parentWidgetMetaData={widgetMetaData} wrapWidgetsInTabPanels={data.layoutType == "TABS"}/>
</Box> </Box>
</Widget> </Widget>
) : null ) : null