Skip to content

Commit

Permalink
fix(grid): add igx-icon template for boolean expandable cell
Browse files Browse the repository at this point in the history
  • Loading branch information
hanastasov committed Sep 28, 2021
1 parent 6a0b188 commit aa049de
Showing 1 changed file with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,20 @@
[row]="rowData"
[column]="this.column.field"
[containerClass]="'igx-grid__td-text'"
[metadata]="searchMetadata">{{ formatter ? (value | columnFormatter:formatter) : column.dataType === 'number' ? (value | number:column.pipeArgs.digitsInfo:grid.locale) : column.dataType === 'date' ? (value | date:column.pipeArgs.format:column.pipeArgs.timezone:grid.locale) : value }}</div>
[metadata]="searchMetadata"
>{{ formatter
? (value | columnFormatter:formatter)
: column.dataType === 'number'
? (value | number:column.pipeArgs.digitsInfo:grid.locale)
: column.dataType === 'date'
? (value | date:column.pipeArgs.format:column.pipeArgs.timezone:grid.locale)
: value
}}</div>
<igx-icon
*ngIf="column.dataType === 'boolean' && !this.formatter"
[ngClass]="{ 'igx-icon--success': value, 'igx-icon--error': !value }"
>{{ value ? "check" : "close" }}</igx-icon
>
</ng-template>
<ng-template #addRowCell let-cell="cell">
<div *ngIf="column.dataType !== 'boolean' || (column.dataType === 'boolean' && this.formatter)"
Expand Down

0 comments on commit aa049de

Please sign in to comment.