100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
add group type to panel types and add an extra hard coded panel
Vincent8b06b74a77fe
diff --git a/ui/component/or-asset-viewer/src/index.ts b/ui/component/or-asset-viewer/src/index.tsindex e297732f0..fde7ba65f 100644--- a/ui/component/or-asset-viewer/src/index.ts+++ b/ui/component/or-asset-viewer/src/index.ts@@ -29,7 +29,7 @@ import i18next from "i18next";import {styleMap} from "lit-html/directives/style-map";import {classMap} from "lit-html/directives/class-map";-export type PanelType = "property" | "location" | "attribute" | "history" | "chart";+export type PanelType = "property" | "location" | "attribute" | "history" | "chart" | "group";export interface PanelConfig {type?: PanelType;@@ -651,6 +651,11 @@ export class OrAssetViewer extends subscribe(manager)(translate(i18next)(LitElemconfig.historyConfig = assetConfig.historyConfig || this.config.historyConfig;}}+ config.panels.group = {+ type: "group",+ hideOnMobile: true,+ panelStyles: {gridColumn: "2 / -1"}+ };return config;}