widgets/implementations/linear-gauge/linear-gauge-widget-view/linear-gauge-widget-view.component.ts
OnChanges
DynamicComponent
providers |
MeasurementRealtimeService
|
selector | c8y-linear-gauge-widget-view |
standalone | true |
imports |
NgIf
NgClass
AsyncPipe
RangeDisplayModule
|
templateUrl | ./linear-gauge-widget-view.component.html |
Properties |
Methods |
Inputs |
constructor(measurementRealtime: MeasurementRealtimeService, dashboard: ContextDashboardComponent, dynamicComponent?: DynamicComponentComponent)
|
||||||||||||
Parameters :
|
config |
Type : literal type
|
ngOnChanges |
ngOnChanges()
|
Returns :
void
|
alerts |
Type : DynamicComponentAlertAggregator
|
rangeDisplayConfig$ |
Type : Observable<RangeDisplay>
|
<div
class="p-l-16 p-r-16 p-b-16 fit-h d-flex d-col flex-center"
*ngIf="rangeDisplayConfig$ | async as rangeDisplayConfig"
[ngClass]="{
'p-t-40 j-c-center': rangeDisplayConfig.orientation === 'horizontal',
}"
>
<c8y-range-display [config]="rangeDisplayConfig" [ngClass]="{'flex-grow': rangeDisplayConfig.orientation == 'vertical'}"></c8y-range-display>
</div>