Browse Source

Add absolute change column

pull/3378/head
Thomas Kaul 1 year ago
parent
commit
3ff8722630
  1. 25
      libs/ui/src/lib/holdings-table/holdings-table.component.html
  2. 7
      libs/ui/src/lib/holdings-table/holdings-table.component.ts

25
libs/ui/src/lib/holdings-table/holdings-table.component.html

@ -109,7 +109,30 @@
</td> </td>
</ng-container> </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 <th
*matHeaderCellDef *matHeaderCellDef
class="justify-content-end px-1" class="justify-content-end px-1"

7
libs/ui/src/lib/holdings-table/holdings-table.component.ts

@ -84,7 +84,12 @@ export class GfHoldingsTableComponent implements OnChanges, OnDestroy, OnInit {
} }
this.displayedColumns.push('allocationInPercentage'); this.displayedColumns.push('allocationInPercentage');
this.displayedColumns.push('performance');
if (this.hasPermissionToShowValues) {
this.displayedColumns.push('performance');
}
this.displayedColumns.push('performanceInPercentage');
this.isLoading = true; this.isLoading = true;

Loading…
Cancel
Save