|
4 | 4 | <igx-switch [(ngModel)]="hideRowSelectors">Hide Row Selectors</igx-switch> |
5 | 5 | <igx-buttongroup [values]="selectionModes" (selected)="selectCellSelectionMode($event)"></igx-buttongroup> |
6 | 6 | </div> |
7 | | - <igx-grid [igxPreventDocumentScroll]="true" #grid1 [data]="data | async" [height]="'530px'" [primaryKey]="'ID'" width="100%" [cellSelection]="'none'" |
8 | | - [rowSelection]="selectionMode" [selectedRows]="selectedRows" [hideRowSelectors]="hideRowSelectors" [allowFiltering]="true" |
9 | | - (rowSelectionChanging)="handleRowSelection($event)"> |
10 | | - <igx-column [field]="'Category'"></igx-column> |
11 | | - <igx-column [field]="'Type'" [filterable]='false'></igx-column> |
12 | | - <igx-column [field]="'Price'" dataType="number" [formatter]="formatCurrency"></igx-column> |
13 | | - <igx-column [field]="'Buy'" dataType="number" [formatter]="formatCurrency"></igx-column> |
14 | | - <igx-column [field]="'Sell'" dataType="number" [formatter]="formatCurrency"></igx-column> |
15 | | - <igx-column [field]="'Change'" dataType="number" [headerClasses]="'headerAlignSyle'"> |
16 | | - <ng-template igxHeader> |
17 | | - <span>Change</span> |
18 | | - </ng-template> |
19 | | - <ng-template igxCell let-val> |
20 | | - <div class="currency-badge-container"> |
21 | | - <igx-badge *ngIf="val>0" type="success" position="bottom-right" icon="arrow_upward" |
22 | | - class="badge-left"></igx-badge> |
23 | | - <igx-badge *ngIf="val<0" type="error" position="bottom-right" icon="arrow_downward" |
24 | | - class="error badge-left"></igx-badge> |
25 | | - <span class="cellAlignSyle" [class.up]="val>0" [class.down]="val<0">{{ formatNumber(val) }}</span> |
26 | | - </div> |
27 | | - </ng-template> |
28 | | - </igx-column> |
29 | | - <igx-column [field]="'Change(%)'" dataType="number" [formatter]="formatNumber"> |
30 | | - <ng-template igxHeader> |
31 | | - <span>Change(%)</span> |
32 | | - </ng-template> |
33 | | - |
34 | | - <ng-template igxCell let-val> |
35 | | - <span class="cellAlignSyle" [class.up]="val>0" [class.down]="val<0">{{ formatNumber(val) }}%</span> |
36 | | - </ng-template> |
37 | | - </igx-column> |
38 | | - <igx-column [field]="'Change On Year(%)'" dataType="number" [formatter]="formatNumber"> |
39 | | - <ng-template igxCell let-val> |
40 | | - <div class="currency-badge-container"> |
41 | | - <igx-badge *ngIf="val>0" type="success" position="bottom-right" icon="arrow_upward" |
42 | | - class="badge-left"></igx-badge> |
43 | | - <igx-badge *ngIf="val<0" type="error" position="bottom-right" icon="arrow_downward" |
44 | | - class="error badge-left"></igx-badge> |
| 7 | + <div class="sample-wrapper"> |
| 8 | + <div class="grid-wrapper"> |
| 9 | + <igx-grid [igxPreventDocumentScroll]="true" #grid1 [data]="data | async" [height]="'550px'" [primaryKey]="'ID'" width="100%" [cellSelection]="'none'" |
| 10 | + [rowSelection]="selectionMode" [selectedRows]="selectedRows" [hideRowSelectors]="hideRowSelectors" [allowFiltering]="true" |
| 11 | + (rowSelectionChanging)="handleRowSelection($event)"> |
| 12 | + <igx-column [field]="'Category'"></igx-column> |
| 13 | + <igx-column [field]="'Type'" [filterable]='false'></igx-column> |
| 14 | + <igx-column [field]="'Price'" dataType="number" [formatter]="formatCurrency"></igx-column> |
| 15 | + <igx-column [field]="'Buy'" dataType="number" [formatter]="formatCurrency"></igx-column> |
| 16 | + <igx-column [field]="'Sell'" dataType="number" [formatter]="formatCurrency"></igx-column> |
| 17 | + <igx-column [field]="'Change'" dataType="number" [headerClasses]="'headerAlignSyle'"> |
| 18 | + <ng-template igxHeader> |
| 19 | + <span>Change</span> |
| 20 | + </ng-template> |
| 21 | + <ng-template igxCell let-val> |
| 22 | + <div class="currency-badge-container"> |
| 23 | + <igx-badge *ngIf="val>0" type="success" position="bottom-right" icon="arrow_upward" |
| 24 | + class="badge-left"></igx-badge> |
| 25 | + <igx-badge *ngIf="val<0" type="error" position="bottom-right" icon="arrow_downward" |
| 26 | + class="error badge-left"></igx-badge> |
| 27 | + <span class="cellAlignSyle" [class.up]="val>0" [class.down]="val<0">{{ formatNumber(val) }}</span> |
| 28 | + </div> |
| 29 | + </ng-template> |
| 30 | + </igx-column> |
| 31 | + <igx-column [field]="'Change(%)'" dataType="number" [formatter]="formatNumber"> |
| 32 | + <ng-template igxHeader> |
| 33 | + <span>Change(%)</span> |
| 34 | + </ng-template> |
| 35 | + |
| 36 | + <ng-template igxCell let-val> |
45 | 37 | <span class="cellAlignSyle" [class.up]="val>0" [class.down]="val<0">{{ formatNumber(val) }}%</span> |
| 38 | + </ng-template> |
| 39 | + </igx-column> |
| 40 | + <igx-column [field]="'Change On Year(%)'" dataType="number" [formatter]="formatNumber"> |
| 41 | + <ng-template igxCell let-val> |
| 42 | + <div class="currency-badge-container"> |
| 43 | + <igx-badge *ngIf="val>0" type="success" position="bottom-right" icon="arrow_upward" |
| 44 | + class="badge-left"></igx-badge> |
| 45 | + <igx-badge *ngIf="val<0" type="error" position="bottom-right" icon="arrow_downward" |
| 46 | + class="error badge-left"></igx-badge> |
| 47 | + <span class="cellAlignSyle" [class.up]="val>0" [class.down]="val<0">{{ formatNumber(val) }}%</span> |
| 48 | + </div> |
| 49 | + </ng-template> |
| 50 | + </igx-column> |
| 51 | + </igx-grid> |
| 52 | + </div> |
| 53 | + <div class="log-wrapper"> |
| 54 | + <div class="selected-data-area"> |
| 55 | + <div class="logContainer"> |
| 56 | + <div class="highlight"> |
| 57 | + <span>Events execution sequence</span> |
| 58 | + <button class="clearBtn" igxButton="flat" (click)="clearLog()"> |
| 59 | + <igx-icon>clear</igx-icon> |
| 60 | + <span>Clear log</span> |
| 61 | + </button> |
| 62 | + </div> |
| 63 | + <hr /> |
| 64 | + <div #logger class="logger"></div> |
46 | 65 | </div> |
47 | | - </ng-template> |
48 | | - </igx-column> |
49 | | - </igx-grid> |
| 66 | + </div> |
| 67 | + </div> |
| 68 | + </div> |
50 | 69 | </div> |
51 | 70 |
|
52 | 71 | <igx-snackbar #snackbarRowCount actionText="Got it. Thanks!" (clicked)="snackbarRowCount.close()"> |
|
0 commit comments