first step to show plot on dashboard
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user