Skip to content

Commit

Permalink
[AAE-17103] Improve icon cell
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktord2000 committed Oct 20, 2023
1 parent 577b32f commit de18de1
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { DataTableService } from '../../services/datatable.service';
changeDetection: ChangeDetectionStrategy.OnPush,
template: `
<ng-container *ngIf="value$ | async as value">
<mat-icon *ngIf="(value | adfTypeof) === 'string'" aria-hidden="true">{{ value }}</mat-icon>
<mat-icon [title]="tooltip" *ngIf="(value | adfTypeof) === 'string'" aria-hidden="true">{{ value }}</mat-icon>
</ng-container>
`,
encapsulation: ViewEncapsulation.None,
Expand All @@ -41,8 +41,6 @@ export class IconCellComponent extends DataTableCellComponent implements OnInit
}

ngOnInit(): void {
if (this.column?.key && this.row && this.data) {
this.value$.next(this.data.getValue(this.row, this.column, this.resolverFn));
}
super.ngOnInit();
}
}

0 comments on commit de18de1

Please sign in to comment.