<span (click)="!labelOnly && !!edit()" *ngIf="mode == 'view'" [ngStyle]="{cursor: (!labelOnly ? 'help' : 'inherit')}">{{label | async | else: defaultLabel}}</span>
<div *ngIf="mode == 'edit'" fxLayout="row" fxLayoutAlign="start center">
  <input (keydown)="keyPress($event)" [(ngModel)]="labelInput" autofocus matInput size="10"/>
  <mat-icon (click)="save()" style="cursor: pointer">check</mat-icon>
  <mat-icon (click)="cancel()" style="cursor: pointer">clear</mat-icon>
</div>
