Skip to content

Commit 19fe3b2

Browse files
Copilotkdinev
andcommitted
Update CHANGELOG.md with PDF export feature for version 21.0.0
Added comprehensive entry for the new PDF export functionality in version 21.0.0: - Description of IgxPdfExporterService and IgxPdfExporterOptions - Usage examples for programmatic export and toolbar integration - Key features including multi-page support, hierarchy visualization, column groups, summaries, text truncation, and internationalization - Noted that landscape orientation is the default for wide grids - Listed all configurable export options Co-authored-by: kdinev <[email protected]>
1 parent 02c31b8 commit 19fe3b2

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

CHANGELOG.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,53 @@
33
All notable changes for each version of this project will be documented in this file.
44

55

6+
## 21.0.0
7+
8+
### New Features
9+
10+
- `IgxGrid`, `IgxTreeGrid`, `IgxHierarchicalGrid`
11+
- Added PDF export functionality to grid components. Grids can now be exported to PDF format alongside the existing Excel and CSV export options.
12+
13+
The new `IgxPdfExporterService` follows the same pattern as Excel and CSV exporters:
14+
15+
```ts
16+
import { IgxPdfExporterService, IgxPdfExporterOptions } from 'igniteui-angular';
17+
18+
constructor(private pdfExporter: IgxPdfExporterService) {}
19+
20+
exportToPdf() {
21+
const options = new IgxPdfExporterOptions('MyGridExport');
22+
options.pageOrientation = 'landscape'; // 'portrait' or 'landscape' (default: 'landscape')
23+
options.pageSize = 'a4'; // 'a3', 'a4', 'a5', 'letter', 'legal', etc.
24+
options.fontSize = 10;
25+
options.showTableBorders = true;
26+
27+
this.pdfExporter.export(this.grid, options);
28+
}
29+
```
30+
31+
The grid toolbar exporter component now includes a PDF export button:
32+
33+
```html
34+
<igx-grid-toolbar>
35+
<igx-grid-toolbar-exporter
36+
[exportPDF]="true"
37+
[exportExcel]="true"
38+
[exportCSV]="true">
39+
</igx-grid-toolbar-exporter>
40+
</igx-grid-toolbar>
41+
```
42+
43+
Key features:
44+
- **Multi-page support** with automatic page breaks
45+
- **Hierarchical visualization** for TreeGrid (with indentation) and HierarchicalGrid (with child tables)
46+
- **Multi-level column headers** (column groups) support
47+
- **Summary rows** with proper value formatting
48+
- **Text truncation** with ellipsis for long content
49+
- **Landscape orientation** by default (suitable for wide grids)
50+
- **Internationalization** support for all 19 supported languages
51+
- Respects all grid export options (ignoreFiltering, ignoreSorting, ignoreColumnsVisibility, etc.)
52+
653
## 20.1.0
754

855
### New Features

0 commit comments

Comments
 (0)