Skip to content

Commit

Permalink
feat(igx-grid): Take locale into account for summary' values, #3455
Browse files Browse the repository at this point in the history
  • Loading branch information
sstoyanovIG committed Dec 20, 2018
1 parent dbc2a73 commit b1bdd3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<span class="igx-grid-summary__label" title="{{ summary.label }}">{{ summary.label }}</span>
<span class="igx-grid-summary__result" title="{{ summary.summaryResult }}">
{{ columnDatatype === 'number' ? (summary.summaryResult | igxdecimal) : columnDatatype === 'date' ? (summary.summaryResult | igxdate) : (summary.summaryResult) }}
{{ columnDatatype === 'number' ? (summary.summaryResult | igxdecimal: grid.locale) : columnDatatype === 'date' ? (summary.summaryResult | igxdate: grid.locale) : (summary.summaryResult) }}
</span>
</div>
</ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ export class IgxSummaryCellComponent {
return this.column.grid.defaultRowHeight;
}

private get grid() {
/**
* @hidden
*/
public get grid() {
return (this.column.grid as any);
}

Expand Down

0 comments on commit b1bdd3f

Please sign in to comment.