File tree Expand file tree Collapse file tree
src/app/pivot-grid/pivot-export Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ < div class ="pivotgrid-sample ">
2+ < div class ="button-container ">
3+ < button igxButton ="raised " (click) ="exportButtonHandler() "> Export To Excel</ button >
4+ Press the button to export the Pivot Grid as .xlsx file.
5+ </ div >
16
2- < div class ="button-container ">
3- < button igxButton ="raised " (click) ="exportButtonHandler() "> Export To Excel</ button >
4- Press the button to export the Pivot Grid as .xlsx file.
5- </ div >
6-
7- < div class ="pivot-container ">
8- < igx-pivot-grid #grid [data] ="data " [height] ="'800px' " [pivotConfiguration] ="pivotConfig " [rowSelection] ="'single' "
7+ < igx-pivot-grid #grid [data] ="data " [pivotConfiguration] ="pivotConfig " [rowSelection] ="'single' "
98 [superCompactMode] ="true " [defaultExpandState] ='true '>
109 </ igx-pivot-grid >
1110</ div >
Original file line number Diff line number Diff line change 1- :host {
2- padding : 8px ;
3- display : flex ;
4- flex-direction : column ;
5-
6- ::ng- deep {
7- igx- pivot- data- selector {
8- border : 1px solid hsla (var (--igx-grays-200 ));
9- margin : 0 8px ;
10- }
1+ .pivotgrid-sample {
2+ justify-content : center ;
3+ margin : 0 auto ;
4+ width : 90% ;
5+ height : 80% ;
6+
7+ .button-container {
8+ align-items : flex-start ;
9+ margin : 25px auto ;
1110 }
1211
12+ igx-pivot-grid {
13+ align-items : center ;
14+ }
1315}
14-
15- igx-pivot-grid {
16- flex : 1 ;
17- }
18-
19- .button-container {
20- margin : 0 0 25px 0 ;
21- }
22-
23- .pivot-container {
24- display : flex ;
25- align-items : flex-start ;
26- flex : 1 1 auto ;
27- order : 0 ;
28- }
Original file line number Diff line number Diff line change @@ -123,6 +123,6 @@ export class PivotExportComponent {
123123 }
124124
125125 public exportButtonHandler ( ) {
126- this . excelExportService . export ( this . grid , new IgxExcelExporterOptions ( 'ExportedPivotGrid ' ) ) ;
126+ this . excelExportService . export ( this . grid , new IgxExcelExporterOptions ( 'ExportedDataFile ' ) ) ;
127127 }
128128}
You can’t perform that action at this time.
0 commit comments