|
1 | | -<igx-grid [data]="data$ | async" [rowSelection]="'multiple'" [isLoading]="isLoading" class="grid-sizing"> |
| 1 | +<igx-grid [data]="data$ | async" [isLoading]="isLoading" class="grid-sizing"> |
2 | 2 | <igx-grid-toolbar> |
3 | 3 | <igx-grid-toolbar-title>Financial Portfolio</igx-grid-toolbar-title> |
4 | 4 | <igx-input-group type="search"> |
|
10 | 10 | <igx-grid-toolbar-exporter></igx-grid-toolbar-exporter> |
11 | 11 | </igx-grid-toolbar-actions> |
12 | 12 | </igx-grid-toolbar> |
13 | | - <igx-column field="id" header="Symbol" sortable="true" [width]="'7%'"></igx-column> |
14 | | - <igx-column field="holdingName" header="Asset" sortable="true" [width]="'15%'"> |
| 13 | + <igx-column field="id" header="Symbol" [width]="'7%'" [minWidth]="'68px'"></igx-column> |
| 14 | + <igx-column field="holdingName" header="Asset" sortable="true" [width]="'15%'" [minWidth]="'100px'"> |
15 | 15 | <ng-template igxCell let-cell="cell" let-val> |
16 | 16 | <div class="assets-container"> |
17 | 17 | <igx-avatar [src]="getPathToImage(val)" [shape]="'rounded'"></igx-avatar> |
18 | 18 | <span>{{ val }}</span> |
19 | 19 | </div> |
20 | 20 | </ng-template> |
21 | 21 | </igx-column> |
22 | | - <igx-column field="positions" header="Position" sortable="true" [dataType]="'number'" [width]="'6%'"></igx-column> |
23 | | - <igx-column field="value.boughtPrice" header="Average Cost/Share" dataType="currency" sortable="true" [width]="'10%'"></igx-column> |
24 | | - <igx-column field="value.currentPrice" header="Last Price" [dataType]="'currency'" sortable="true" [width]="'7%'"></igx-column> |
25 | | - <igx-column field="dailyPercentageChange" header="Daily Change %" dataType="percent" [cellClasses]="profitLossValueClasses" sortable="true" [width]="'10%'"> |
| 22 | + <igx-column field="value.currentPrice" header="Last Price" [dataType]="'currency'" [width]="'7%'" [minWidth]="'80px'"></igx-column> |
| 23 | + <igx-column field="dailyPercentageChange" header="Change %" dataType="percent" [cellClasses]="profitLossValueClasses" [width]="'10%'" [minWidth]="'85px'"> |
26 | 24 | <ng-template igxCell let-val> |
27 | 25 | <div class="assets-container"> |
28 | 26 | <div> |
|
37 | 35 | </div> |
38 | 36 | </ng-template> |
39 | 37 | </igx-column> |
40 | | - <igx-column field="marketValue" header="Market Value" [dataType]="'currency'" sortable="true" [width]="'5%'"></igx-column> |
41 | | - <igx-column field="profitLossValue" header="NET Profit/Loss" sortable="true" dataType="currency" [width]="'10%'" [cellClasses]="profitLossValueClasses"> |
| 38 | + <igx-column field="marketValue" header="Market Value" [dataType]="'currency'" [width]="'5%'" [minWidth]="'100px'"></igx-column> |
| 39 | + <igx-column field="profitLossValue" header="NET Profit" dataType="currency" [width]="'10%'" [minWidth]="'90px'" [cellClasses]="profitLossValueClasses"> |
42 | 40 | <ng-template igxCell let-val> |
43 | 41 | <div class="assets-container"> |
44 | 42 | <div> |
|
53 | 51 | </div> |
54 | 52 | </ng-template> |
55 | 53 | </igx-column> |
56 | | - <igx-column field="profitLossPercentage" header="NET Profit/Loss %" sortable="true" dataType="percent" [width]="'10%'" [cellClasses]="profitLossValueClasses"> |
| 54 | + <igx-column field="profitLossPercentage" header="NET Profit %" dataType="percent" [width]="'10%'" [minWidth]="'98px'" [cellClasses]="profitLossValueClasses"> |
57 | 55 | <ng-template igxCell let-val> |
58 | 56 | <div class="assets-container"> |
59 | 57 | <div> |
|
68 | 66 | </div> |
69 | 67 | </ng-template> |
70 | 68 | </igx-column> |
71 | | - <igx-column field="allocation" header="Allocation" sortable="true" dataType="percent" [width]="'10%'"> |
| 69 | + <igx-column field="allocation" header="Allocation" dataType="percent" [width]="'10%'" [minWidth]="'100px'"> |
72 | 70 | <ng-template igxCell let-val> |
73 | 71 | <div class="progress-container"> |
74 | | - <div> |
| 72 | + <div style="width: 42px;"> |
75 | 73 | {{ val | percent : "1.0-2" }} |
76 | 74 | </div> |
77 | 75 | <igx-linear-bar [value]="val * 100" [animate]="false" textVisibility="false"></igx-linear-bar> |
78 | 76 | </div> |
79 | 77 | </ng-template> |
80 | 78 | </igx-column> |
81 | | - <igx-column field="holdingPeriod" header="Holding Period" sortable="true" [width]="'8%'"> |
| 79 | + <igx-column field="value.boughtPrice" header="Average Cost" dataType="currency" [width]="'10%'" [minWidth]="'100px'"></igx-column> |
| 80 | + <igx-column field="positions" header="Position" [dataType]="'number'" [width]="'6%'" [minWidth]="'80px'"></igx-column> |
| 81 | + <igx-column field="holdingPeriod" header="Holding Period" [width]="'8%'" [minWidth]="'50px'"> |
82 | 82 | <ng-template igxCell let-val> {{ val }} days </ng-template> |
83 | 83 | </igx-column> |
84 | 84 | </igx-grid> |
0 commit comments