-
Notifications
You must be signed in to change notification settings - Fork 160
Expand file tree
/
Copy pathpivot-grid-state.sample.html
More file actions
34 lines (34 loc) · 1.49 KB
/
pivot-grid-state.sample.html
File metadata and controls
34 lines (34 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<div class="sample-flex-row">
<div>
<button igxButton="outlined" (click)="saveState()">SAVE STATE</button>
<button igxButton="contained" (click)="restoreState()">RESTORE STATE</button>
<button igxButton="contained" (click)="export()">EXPORT</button>
<igx-switch [checked]="pivotUI.showRowHeaders" (change)="onShowHeadersToggle($event)">Show headers</igx-switch>
<igx-switch [checked]="pivotUI.rowLayout === 'horizontal'" (change)="onLayoutToggle($event)">Horizontal layout</igx-switch>
</div>
<div class="pivot-container">
<div style="width: 100%;">
<igx-pivot-grid
#grid1
[igxGridState]="options"
(valueInit)='onValueInit($event)'
(dimensionInit)='onDimensionInit($event)'
[data]="origData"
[width]="'100%'"
[height]="'800px'"
[superCompactMode]="true"
[defaultExpandState]="true"
[pivotConfiguration]="pivotConfigHierarchy"
[pivotUI]="pivotUI"
[allowFiltering]="true"
[filterMode]="'quickFilter'"
[rowSelection]="'single'"
>
<ng-template igxPivotRowDimensionHeader let-col>
<span>{{col.header}} 📐</span>
</ng-template>
</igx-pivot-grid>
</div>
<igx-pivot-data-selector [grid]="grid1"></igx-pivot-data-selector>
</div>
</div>