Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <ng-template pCellDef [column]="field.property" let-row="row" let-inEdit="false">
  2. <div style="height: 50px; width: 100%" (click)="inEdit=true" (blur)="inEdit=false">
  3. <div *ngIf="!inEdit">
  4. {{row[field.property]}}
  5. </div>
  6. <mat-form-field *ngIf="inEdit" class="example-full-width">
  7. <input matInput [(ngModel)]="row[field.property]">
  8. </mat-form-field>
  9. </div>
  10. </ng-template>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement