widgets/implementations/map/map-event-info.component.ts
OnChanges
selector | c8y-map-event-info |
standalone | true |
imports |
NgCommonModule
C8yTranslateDirective
DatePipe
LoadingComponent
|
templateUrl | ./map-event-info.component.html |
Properties |
Methods |
|
Inputs |
constructor(eventService: EventService)
|
||||||
Parameters :
|
asset |
Type : IManagedObject
|
Async ngOnChanges |
ngOnChanges()
|
Returns :
any
|
event |
Type : IEvent
|
loading |
Default value : true
|
<div class="text-muted text-10 p-t-4 p-b-4">
<span translate>Last position update:</span>
<br />
<c8y-loading *ngIf="loading"></c8y-loading>
<ng-container *ngIf="!loading">
<i *ngIf="!event" translate>No information found</i>
<ng-container *ngIf="event">
<i>{{ event.time | c8yDate }}</i>
<ng-content></ng-content>
</ng-container>
</ng-container>
</div>