first step to show plot on dashboard

This commit is contained in:
2023-02-26 14:07:19 +01:00
parent ea3ccabe56
commit fb5c8ea019
19 changed files with 114 additions and 55 deletions

View File

@@ -1,6 +1,7 @@
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { PlotConfig } from './plot.service';
@Injectable({
providedIn: 'root'
@@ -32,7 +33,7 @@ export class DashboardCreationData{
}
export class Dashboard{
constructor(public id: string, public name: string, public description: string, public texts: [TextWidget]){}
constructor(public id: string, public name: string, public description: string, public texts: TextWidget[], public plots: PlotWidget[]){}
}
export class DashboardList{
@@ -49,7 +50,7 @@ export class TextWidget extends BaseWidget {
}
}
export class PlotWidget extends BaseWidget {
constructor(override size: 'SMALL'|'MEDIUM'|'LARGE') {
constructor(override size: 'SMALL'|'MEDIUM'|'LARGE', public config: PlotConfig) {
super('PLOT', size);
}
}