Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

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.ts
index 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)(LitElem
config.historyConfig = assetConfig.historyConfig || this.config.historyConfig;
}
}
+ config.panels.group = {
+ type: "group",
+ hideOnMobile: true,
+ panelStyles: {gridColumn: "2 / -1"}
+ };
return config;
}