|
1 | 1 | <div class="igx-grid-thead__wrapper igx-grid-thead__wrapper--pivot" role="row" [style.width.px]="width"> |
2 | 2 | <div class="igx-grid__tr" role="row" [style.width.px]="width"> |
3 | | - <div #pivotFilterContainer class="igx-grid__tr-pivot igx-grid__tr-pivot--filter" [style.min-width.px]="grid.pivotRowWidths - 1" [style.max-width.px]="grid.pivotRowWidths - 1" |
| 3 | + <div #pivotFilterContainer *ngIf="grid.showPivotConfigurationUI" class="igx-grid__tr-pivot igx-grid__tr-pivot--filter" [style.min-width.px]="grid.pivotRowWidths - 1" [style.max-width.px]="grid.pivotRowWidths - 1" |
4 | 4 | (igxDragEnter)="onAreaDragEnter($event, filterArea, 2)" (igxDragLeave)="onAreaDragLeave($event, filterArea)" |
5 | 5 | igxDrop (dropped)="onDimDrop($event, filterArea, 2)" (pointerdown)="$event.preventDefault()"> |
6 | 6 |
|
|
21 | 21 | </div> |
22 | 22 |
|
23 | 23 | <div class="igx-grid__tr-pivot-group"> |
24 | | - <div #pivotColumnContainer class="igx-grid__tr-pivot" (dropped)="onDimDrop($event, colArea, 1)" igxDrop |
| 24 | + <div #pivotColumnContainer *ngIf="grid.showPivotConfigurationUI" class="igx-grid__tr-pivot" (dropped)="onDimDrop($event, colArea, 1)" igxDrop |
25 | 25 | (igxDragEnter)="onAreaDragEnter($event, colArea, 1)" (igxDragLeave)="onAreaDragLeave($event, colArea)"> |
26 | 26 |
|
27 | 27 | <span *ngIf="grid.columnDimensions.length === 0" class='igx-pivot__emptyChipArea'>Drop Column Fields here.</span> |
|
44 | 44 | </igx-chips-area> |
45 | 45 | </div> |
46 | 46 |
|
47 | | - <div #pivotValueContainer class="igx-grid__tr-pivot" (pointerdown)="$event.preventDefault()" |
| 47 | + <div #pivotValueContainer *ngIf="grid.showPivotConfigurationUI" class="igx-grid__tr-pivot" (pointerdown)="$event.preventDefault()" |
48 | 48 | (dropped)="onValueDrop($event, valueArea)" igxDrop |
49 | 49 | (igxDragEnter)="onAreaDragEnter($event, valueArea)" |
50 | 50 | (igxDragLeave)="onAreaDragLeave($event, valueArea)"> |
|
81 | 81 | (igxDragEnter)="onAreaDragEnter($event, rowArea, 0)" (igxDragLeave)="onAreaDragLeave($event, rowArea)" |
82 | 82 | igxDrop (dropped)="onDimDrop($event, rowArea, 0)" (pointerdown)="$event.preventDefault()"> |
83 | 83 |
|
84 | | - <span *ngIf="grid.rowDimensions.length === 0" class='igx-pivot__emptyChipArea'>Drop Row Fields here.</span> |
| 84 | + <span *ngIf="grid.rowDimensions.length === 0 && grid.showPivotConfigurationUI" class='igx-pivot__emptyChipArea'>Drop Row Fields here.</span> |
85 | 85 |
|
86 | 86 | <!-- Row area --> |
87 | 87 | <igx-chips-area #rowArea droppable='true'> |
88 | | - <igx-chip *ngFor="let row of grid.rowDimensions" [draggable]="true" [id]="row.memberName" |
89 | | - [displayDensity]="grid.displayDensity" |
90 | | - [removable]="true" (remove)="rowRemoved($event)" |
91 | | - (dragLeave)="onDimDragLeave($event)" |
92 | | - (dragDrop)="onDimDrop($event, rowArea, 0)" |
93 | | - (dragOver)="onDimDragOver($event, 0)" |
94 | | - (click)="onChipSort($event, row, 0)"> |
95 | | - <igx-icon igxPrefix>table_rows</igx-icon> |
96 | | - <igx-icon igxPrefix (pointerdown)='onFilteringIconPointerDown($event)' (click)='onFilteringIconClick($event, row)'>filter_list</igx-icon> |
97 | | - {{ row.memberName}} |
98 | | - <igx-icon *ngIf="row.sortDirection" igxSuffix> {{ row.sortDirection < 2 ? 'arrow_upward' : 'arrow_downward' }}</igx-icon> |
99 | | - </igx-chip> |
| 88 | + <ng-container *ngIf="grid.showPivotConfigurationUI"> |
| 89 | + <igx-chip *ngFor="let row of grid.rowDimensions" [draggable]="true" [id]="row.memberName" |
| 90 | + [displayDensity]="grid.displayDensity" |
| 91 | + [removable]="true" (remove)="rowRemoved($event)" |
| 92 | + (dragLeave)="onDimDragLeave($event)" |
| 93 | + (dragDrop)="onDimDrop($event, rowArea, 0)" |
| 94 | + (dragOver)="onDimDragOver($event, 0)" |
| 95 | + (click)="onChipSort($event, row, 0)"> |
| 96 | + <igx-icon igxPrefix>table_rows</igx-icon> |
| 97 | + <igx-icon igxPrefix (pointerdown)='onFilteringIconPointerDown($event)' (click)='onFilteringIconClick($event, row)'>filter_list</igx-icon> |
| 98 | + {{ row.memberName}} |
| 99 | + <igx-icon *ngIf="row.sortDirection" igxSuffix> {{ row.sortDirection < 2 ? 'arrow_upward' : 'arrow_downward' }}</igx-icon> |
| 100 | + </igx-chip> |
| 101 | + </ng-container> |
100 | 102 | </igx-chips-area> |
101 | 103 | </div> |
102 | 104 |
|
|
0 commit comments