Skip to content

Commit

Permalink
fix(grid): remove formating text when formatter is missing on boolean…
Browse files Browse the repository at this point in the history
… column
  • Loading branch information
Volen99 committed Sep 21, 2021
1 parent 3e18f13 commit 668cfab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion projects/igniteui-angular/src/lib/grids/cell.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
? (value | currency:currencyCode:column.pipeArgs.display:column.pipeArgs.digitsInfo:grid.locale)
: column.dataType === 'percent'
? (value | percent:column.pipeArgs.digitsInfo:grid.locale)
: column.dataType === 'boolean' && !this.formatter
? ''
: value
"
[row]="rowData"
Expand All @@ -43,6 +45,8 @@
? (value | currency:currencyCode:column.pipeArgs.display:column.pipeArgs.digitsInfo:grid.locale)
: column.dataType === 'percent'
? (value | percent:column.pipeArgs.digitsInfo:grid.locale)
: column.dataType === 'boolean' && !this.formatter
? ''
: value
}}</div>
<igx-icon
Expand All @@ -60,7 +64,8 @@
(value | number:column.pipeArgs.digitsInfo:grid.locale) : (column.dataType === 'date' || column.dataType === 'time' || column.dataType === 'dateTime') ?
(value | date:column.pipeArgs.format:column.pipeArgs.timezone:grid.locale) : column.dataType === 'currency' ?
(value | currency:currencyCode:column.pipeArgs.display:column.pipeArgs.digitsInfo:grid.locale) : column.dataType === 'percent' ?
(value | percent:column.pipeArgs.digitsInfo:grid.locale) : value"
(value | percent:column.pipeArgs.digitsInfo:grid.locale) : column.dataType === 'boolean' && !this.formatter ?
'' : value"
[row]="rowData"
[column]="this.column.field"
[containerClass]="'igx-grid__td-text'"
Expand Down

0 comments on commit 668cfab

Please sign in to comment.