Skip to content

Commit

Permalink
fix(grid): when formatter is missing display icon only #8978
Browse files Browse the repository at this point in the history
  • Loading branch information
Volen99 committed Sep 27, 2021
1 parent 2b647d4 commit 2846996
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
: value
}}</div>
<igx-icon
*ngIf="column.dataType === 'boolean'"
*ngIf="column.dataType === 'boolean' && !this.formatter"
[ngClass]="{ 'igx-icon--success': value, 'igx-icon--error': !value }"
>{{ value ? "check" : "close" }}</igx-icon
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export class ColumnCellFormatterComponent extends BasicGridComponent {
}

public boolFormatter(value: boolean): string {
return value ? 'true' : 'false';
return value ? 'check' : 'close';
}
}

Expand Down

0 comments on commit 2846996

Please sign in to comment.