Skip to content

armgit / core

Public Imported from GitHub
0

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

start groupconfig

Vincentd9978fb222bf
diff --git a/ui/component/or-asset-viewer/src/index.ts b/ui/component/or-asset-viewer/src/index.ts
index 2460468be..7b36ef588 100644
--- a/ui/component/or-asset-viewer/src/index.ts
+++ b/ui/component/or-asset-viewer/src/index.ts
@@ -62,6 +62,7 @@ export interface AssetViewerConfig {
mapType?: MapType;
historyConfig?: HistoryConfig;
chartConfig?: OrChartConfig;
+ groupConfig?: OrGroupConfig;
}
export interface ViewerConfig {
@@ -74,6 +75,10 @@ export interface ViewerConfig {
historyConfig?: HistoryConfig;
}
+export interface OrGroupConfig {
+ columnFilters?: string[];
+}
+
class EventHandler {
_callbacks: Function[];
@@ -158,6 +163,9 @@ export class OrAssetViewer extends subscribe(manager)(translate(i18next)(LitElem
gridRowStart: "1"
}
}
+ },
+ groupConfig: {
+ columnFilters: ["a", "b", "c"]
}
};