Feature/add absolute change column to holdings table (#3378)
* Add absolute change column * Update changelog
This commit is contained in:
@@ -109,7 +109,30 @@
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="performance" stickyEnd>
|
||||
<ng-container matColumnDef="performance">
|
||||
<th
|
||||
*matHeaderCellDef
|
||||
class="justify-content-end px-1"
|
||||
mat-header-cell
|
||||
mat-sort-header="netPerformanceWithCurrencyEffect"
|
||||
>
|
||||
<ng-container i18n>Change</ng-container>
|
||||
</th>
|
||||
<td *matCellDef="let element" class="px-1" mat-cell>
|
||||
<div class="d-flex justify-content-end">
|
||||
<gf-value
|
||||
[colorizeSign]="true"
|
||||
[isCurrency]="true"
|
||||
[locale]="locale"
|
||||
[value]="
|
||||
isLoading ? undefined : element.netPerformanceWithCurrencyEffect
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
</td>
|
||||
</ng-container>
|
||||
|
||||
<ng-container matColumnDef="performanceInPercentage" stickyEnd>
|
||||
<th
|
||||
*matHeaderCellDef
|
||||
class="justify-content-end px-1"
|
||||
|
@@ -84,7 +84,12 @@ export class GfHoldingsTableComponent implements OnChanges, OnDestroy, OnInit {
|
||||
}
|
||||
|
||||
this.displayedColumns.push('allocationInPercentage');
|
||||
this.displayedColumns.push('performance');
|
||||
|
||||
if (this.hasPermissionToShowValues) {
|
||||
this.displayedColumns.push('performance');
|
||||
}
|
||||
|
||||
this.displayedColumns.push('performanceInPercentage');
|
||||
|
||||
this.isLoading = true;
|
||||
|
||||
|
Reference in New Issue
Block a user