Skip to content

Commit c9b8c87

Browse files
authored
feat(toolbar): add pdf related info & update snippets (#6299)
* feat(toolbar): add pdf related info & update snippets in toolbar topics
1 parent 4947dbe commit c9b8c87

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

en/components/grid/grid.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ _license: commercial
3737
<div class="sample-content">
3838
<article class="sample-column">
3939
<div class="tabbar-wrapper">
40-
<p>The Angular Data Grid is a component for displaying data in a tabular format. Modern grids are complex and are usually packed with a large set of features like data selection, excel style filtering, sorting, paging, grouping, templating, column moving, column pinning, exporting to Excel, CSV formats and more. </p>
40+
<p>The Angular Data Grid is a component for displaying data in a tabular format. Modern grids are complex and are usually packed with a large set of features like data selection, excel style filtering, sorting, paging, grouping, templating, column moving, column pinning, exporting to Excel, CSV or PDF formats and more. </p>
4141
<p>Ignite UI Angular Data Grid covers all of these basic Grid features, but also advanced features like batch editing, state persistence, keyboard navigations and more. Ensuring seamless integration with various data sources, our component offers the best performance and scalability, making it ideal for apps handling large datasets or those requiring real-time updates fast.</p>
4242
</div>
4343
</article>

en/components/grids_templates/toolbar.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The @@igComponent in Ignite UI for Angular provides an [`IgxGridToolbarComponent
2626

2727
- Column Hiding
2828
- Column Pinning
29-
- Excel Exporting
29+
- Exporting to Excel, CSV and PDF
3030
- Advanced Filtering
3131

3232
or just any other custom content. The toolbar and the predefined UI components support Angular events and expose API for developers.
@@ -351,20 +351,20 @@ title, the placeholder for the component input and the height of the dropdown it
351351
}
352352

353353
As with the rest of the toolbar actions, exporting is provided through a [Toolbar Exporter component]({environment:angularApiUrl}/classes/igxgridtoolbarexportercomponent.html) out of the box.
354-
The exporting component is using the respective service for the target data format ([Excel]({environment:angularApiUrl}/classes/igxexcelexporterservice.html) [CSV]({environment:angularApiUrl}/classes/igxcsvexporterservice.html)). That means if the respective service is not provided through the dependency injection chain, the component
354+
The exporting component is using the respective service for the target data format ([Excel]({environment:angularApiUrl}/classes/igxexcelexporterservice.html), [CSV]({environment:angularApiUrl}/classes/igxcsvexporterservice.html), [PDF]({environment:angularApiUrl}/classes/igxpdfexporterservice.html)). That means if the respective service is not provided through the dependency injection chain, the component
355355
won't be able to export anything.
356356
If you need a refresher on the DI in Angular, check the [official guide](https://angular.io/guide/dependency-injection). Here is a sample snippet showing how to enable
357357
all export services for your application.
358358

359359
```typescript
360360
// app.module.ts
361361

362-
import { IgxExcelExporterService, IgxCsvExporterService } from 'igniteui-angular';
363-
// import { IgxExcelExporterService, IgxCsvExporterService } from '@infragistics/igniteui-angular'; for licensed package
362+
import { IgxExcelExporterService, IgxCsvExporterService, IgxPdfExporterService } from 'igniteui-angular';
363+
// import { IgxExcelExporterService, IgxCsvExporterService, IgxPdfExporterService } from '@infragistics/igniteui-angular'; for licensed package
364364

365365
@NgModule({
366366
...
367-
providers: [IgxExcelExporterService, IgxCsvExporterService ]
367+
providers: [IgxExcelExporterService, IgxCsvExporterService, IgxPdfExporterService ]
368368
})
369369
export class AppModule { ... }
370370
```
@@ -382,16 +382,19 @@ Here is a snippet showing some of the options which can be customized through th
382382
<igx-grid-toolbar>
383383
<igx-grid-toolbar-actions>
384384
<igx-grid-toolbar-exporter
385-
<!-- If active, enables the csv export entry in the dropdown UI -->
385+
<!-- If active, enables the CSV export entry in the dropdown UI -->
386386
[exportCSV]="csvExportEnabled"
387387
<!-- If active, enables the excel export entry in the dropdown UI -->
388388
[exportExcel]="excelExportEnabled"
389+
<!-- If active, enables the PDF export entry in the dropdown UI -->
390+
[exportPDF]="pdfExportEnabled"
389391
<!-- The name of the generated export file without the file extension -->
390392
filename="exported_data"
391393
>
392394
Custom text for the exporter button
393395
<span excelText>Custom text for the excel export entry</span>
394396
<span csvText>Custom text for the CSV export entry</span>
397+
<span pdfText>Custom text for the PDF export entry</span>
395398
</igx-grid-toolbar-exporter>
396399
</igx-grid-toolbar-actions>
397400
</igx-grid-toolbar>

en/components/hierarchicalgrid/hierarchical-grid.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ _license: commercial
77

88
# Angular Hierarchical Data Grid Component Overview
99

10-
The Ignite UI for Angular Hierarchical Data Grid is used to display and manipulate hierarchical tabular data. Quickly bind your data with very little code or use a variety of events to customize different behaviors. This component provides a rich set of features like data selection, excel style filtering, sorting, paging, templating, column moving, column pinning, export to Excel and CSV, and more. The Hierarchical Grid builds upon the Flat Grid Component and extends its functionality by allowing the users to expand or collapse the rows of the parent grid, revealing corresponding child grids, when more detailed information is needed.
10+
The Ignite UI for Angular Hierarchical Data Grid is used to display and manipulate hierarchical tabular data. Quickly bind your data with very little code or use a variety of events to customize different behaviors. This component provides a rich set of features like data selection, excel style filtering, sorting, paging, templating, column moving, column pinning, export to Excel, CSV and PDF and more. The Hierarchical Grid builds upon the Flat Grid Component and extends its functionality by allowing the users to expand or collapse the rows of the parent grid, revealing corresponding child grids, when more detailed information is needed.
1111

1212
## Angular Hierarchical Data Grid Example
1313

en/components/treegrid/tree-grid.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ _license: commercial
77

88
# Angular Tree Grid Component Overview
99

10-
The Ignite UI for Angular Tree Grid is used to display and manipulate hierarchical or flat self-referencing data. Quickly bind your data with very little code or use a variety of events to customize different behaviors. This component provides a rich set of features like data selection, excel style filtering, sorting, paging, grouping, templating, column moving, column pinning, export to Excel and CSV, and more.
10+
The Ignite UI for Angular Tree Grid is used to display and manipulate hierarchical or flat self-referencing data. Quickly bind your data with very little code or use a variety of events to customize different behaviors. This component provides a rich set of features like data selection, excel style filtering, sorting, paging, grouping, templating, column moving, column pinning, export to Excel, CSV and PDF, and more.
1111

1212
## Angular Tree Grid Example
1313

14-
In this example, you can see how users can display hierarchical data. We have included filtering and sorting options, pinning and hiding, row selection, export to excel and csv, and cell templating that uses our [Sparkline](../charts/types/sparkline-chart.md) component. In addition, you can see an example of custom pagination with [Angular Pagination](paging.md).
14+
In this example, you can see how users can display hierarchical data. We have included filtering and sorting options, pinning and hiding, row selection, export to excel, csv and pdf, and cell templating that uses our [Sparkline](../charts/types/sparkline-chart.md) component. In addition, you can see an example of custom pagination with [Angular Pagination](paging.md).
1515

1616
<code-view style="height:850px"
1717
data-demos-base-url="{environment:lobDemosBaseUrl}"

0 commit comments

Comments
 (0)