Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <ng-template pCellDef [column]="field.property" let-row="row" let-inEdit="false">
- <div style="height: 50px; width: 100%" (click)="inEdit=true" (blur)="inEdit=false">
- <div *ngIf="!inEdit">
- {{row[field.property]}}
- </div>
- <mat-form-field *ngIf="inEdit" class="example-full-width">
- <input matInput [(ngModel)]="row[field.property]">
- </mat-form-field>
- </div>
- </ng-template>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement