From 47f90810c43190a10e9f2b6596dca4162a041093 Mon Sep 17 00:00:00 2001 From: Masha_Rudenko Date: Mon, 3 Jun 2024 17:30:10 +0300 Subject: [PATCH 1/3] [add] header/footer params for export to png (chart, grid, treegrid) --- docs/chart/api/export/chart_png_method.md | 6 +++++- docs/grid/api/export/grid_png_method.md | 7 ++++++- docs/treegrid/api/export/treegrid_png_method.md | 7 ++++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/docs/chart/api/export/chart_png_method.md b/docs/chart/api/export/chart_png_method.md index 5a7d04fe..b5b457c1 100644 --- a/docs/chart/api/export/chart_png_method.md +++ b/docs/chart/api/export/chart_png_method.md @@ -16,6 +16,8 @@ description: You can explore the png method of Chart in the documentation of the - `name?: string` - (optional) the name of the exported file - `theme?: string` - (optional) the exported theme, "light" by default. For custom or overridden themes, enable the `exportStyles` option - `exportStyles?: boolean | string[]` - (optional) defines the styles that will be sent to the export service when exporting Chart. Use *false* to prevent all styles from being sent to the export service + - `header?: string` - (optional) an HTML template for the header in the exported file + - `footer?: string` - (optional) an HTML template for the footer in the exported file @example: // default export @@ -34,5 +36,7 @@ chart.export.png({ **Related API:** [exportStyles](chart/api/chart_exportstyles_config.md) **Change log:** + +- The **header** and **footer** options of the export object were added in 8.4 - The **theme** and **exportStyles** options of the export object were added in 8.1 -- The method was added in v8.0 \ No newline at end of file +- Added in v8.0 \ No newline at end of file diff --git a/docs/grid/api/export/grid_png_method.md b/docs/grid/api/export/grid_png_method.md index 40e5a0d6..c1fad239 100644 --- a/docs/grid/api/export/grid_png_method.md +++ b/docs/grid/api/export/grid_png_method.md @@ -16,6 +16,8 @@ description: You can explore the png export method of Grid in the documentation - `name?: string` - (optional) the name of the exported file - `theme?: string` - (optional) the exported theme, "light" by default. For custom or overridden themes, enable the `exportStyles` option - `exportStyles?: boolean | string[]` - (optional) defines the styles that will be sent to the export service when exporting Grid. Use *false* to prevent all styles from being sent to the export service + - `header?: string` - (optional) an HTML template for the header in the exported file + - `footer?: string` - (optional) an HTML template for the footer in the exported file @example: // default export @@ -39,4 +41,7 @@ If you use Grid in conjunction with [Pagination](pagination.md), only the displa **Related API:** [exportStyles](grid/api/grid_exportstyles_config.md) -**Change log:** Added in v8.1 \ No newline at end of file +**Change log:** + +- The **header** and **footer** options of the export object were added in 8.4 +- Added in v8.1 \ No newline at end of file diff --git a/docs/treegrid/api/export/treegrid_png_method.md b/docs/treegrid/api/export/treegrid_png_method.md index 128ef58a..12b4e33e 100644 --- a/docs/treegrid/api/export/treegrid_png_method.md +++ b/docs/treegrid/api/export/treegrid_png_method.md @@ -16,6 +16,8 @@ description: You can explore the png export method of TreeGrid in the documentat - `name?: string` - (optional) the name of the exported file - `theme?: string` - (optional) the exported theme, "light" by default. For custom or overridden themes, enable the `exportStyles` option - `exportStyles?: boolean | string[]` - (optional) defines the styles that will be sent to the export service when exporting TreeGrid. Use *false* to prevent all styles from being sent to the export service + - `header?: string` - (optional) an HTML template for the header in the exported file + - `footer?: string` - (optional) an HTML template for the footer in the exported file @example: // default export @@ -39,4 +41,7 @@ If you use TreeGrid in conjunction with [Pagination](pagination.md), only the di **Related API:** [exportStyles](treegrid/api/treegrid_exportstyles_config.md) -**Change log:** Added in v8.1 \ No newline at end of file +**Change log:** + +- The **header** and **footer** options of the export object were added in 8.4 +- Added in v8.1 \ No newline at end of file From 837054c9464b8ae3edaff536cd496ecea0608213 Mon Sep 17 00:00:00 2001 From: Masha_Rudenko Date: Mon, 3 Jun 2024 17:39:22 +0300 Subject: [PATCH 2/3] [add] ability to add header/footer for a png file in chart, grid, treegrid into what's new --- docs/whatsnew.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/whatsnew.md b/docs/whatsnew.md index eba2825b..47070cec 100644 --- a/docs/whatsnew.md +++ b/docs/whatsnew.md @@ -21,6 +21,10 @@ Released on June X, 2024 - The ability to [specify a template for showing percent values for data items on the Pie, Pie3D and Donut charts](chart/customization.md#adding-template-for-percent-values) +#### Chart / Grid / TreeGrid + +- The ability to [add the header/footer for an exported PNG file](/chart/api/export/chart_png_method/) + #### Combobox - The ability to [add event handlers to HTML elements of a custom template of Combobox items](combobox/configuration.md#event-handlers-for-the-template) From 970f42414f6b36ef75d84538b96a15e780964f90 Mon Sep 17 00:00:00 2001 From: Masha_Rudenko Date: Wed, 12 Jun 2024 15:36:55 +0300 Subject: [PATCH 3/3] [fix] what's new for v8.4 --- docs/whatsnew.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/docs/whatsnew.md b/docs/whatsnew.md index 9ab9af25..f3c91e3d 100644 --- a/docs/whatsnew.md +++ b/docs/whatsnew.md @@ -22,10 +22,6 @@ Released on June X, 2024 - The ability to [specify a template for showing percent values for data items on the Pie, Pie3D and Donut charts](chart/customization.md#adding-template-for-percent-values) - The ability to [add the header/footer for an exported PNG file](/chart/api/export/chart_png_method/) -#### Chart / Grid / TreeGrid - -- The ability to [add the header/footer for an exported PNG file](/chart/api/export/chart_png_method/) - #### Combobox - The ability to [add event handlers to HTML elements of a custom template of Combobox items](combobox/configuration.md#event-handlers-for-the-template)