let-value="value">
{{ value }} /s
</ng-template>
+
+<ng-template #executingTpl
+ let-row="row"
+ let-value="value">
+ <i class="fa fa-spinner fa-spin fa-fw"
+ *ngIf="row.cdExecuting"></i>
+ {{ value }}
+ <span *ngIf="row.cdExecuting"
+ class="text-muted italic">({{ row.cdExecuting }}... )</span>
+</ng-template>
@ViewChild('sparklineTpl') sparklineTpl: TemplateRef<any>;
@ViewChild('routerLinkTpl') routerLinkTpl: TemplateRef<any>;
@ViewChild('perSecondTpl') perSecondTpl: TemplateRef<any>;
+ @ViewChild('executingTpl') executingTpl: TemplateRef<any>;
// This is the array with the items to be shown.
@Input() data: any[];
this.cellTemplates.sparkline = this.sparklineTpl;
this.cellTemplates.routerLink = this.routerLinkTpl;
this.cellTemplates.perSecond = this.perSecondTpl;
+ this.cellTemplates.executing = this.executingTpl;
}
ngOnChanges(changes) {