React Exporter Props
An object configuring options for the Exporter widget.
exportFormat
Specifies a set of formats available for exporting into.
By default, you can export your widget into three formats: PNG, PDF and SVG. If you need to alter this set, assign an array of the required formats to the exportFormat option.
fileName
Specifies a name that should be assigned to the file with the exported widget.
onDisposing
A function that is executed before the widget is disposed of.
Information about the event.
Name | Type | Description |
---|---|---|
component | Exporter |
The widget's instance. |
onInitialized
A function that is executed only once, after the widget is initialized.
Information about the event.
Name | Type | Description |
---|---|---|
component | Exporter |
The widget's instance. |
element |
The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. |
You cannot access widget elements in this function because it is executed before they are ready.
onOptionChanged
A function that is executed after a widget option is changed.
printingEnabled
Specifies whether or not to enable printing operation.
When this option is set to true, the printing icon is displayed making the printing operation available. Otherwise, this icon is concealed.
serverUrl
Specifies the URL of the server that supplies the exporting service.
Learn how to set up the server side for exporting service in our Deploy a Server topic.
showMenu
Specifies whether to show the export menu or not.
This option hides the export menu entirely. To hide only the printing icon, use the printingEnabled option.
sourceContainer
Specifies a div container that holds the widget to be exported.
Every DevExtreme data visualization widget is created inside a div container. In order to export the widget from this container, assign one of the jQuery selectors to the sourceContainer option. For example, if a chart is placed in a div container that has the 'id' attribute set to 'chartContainer', you can specify the sourceContainer option using the ID selector as follows.
$('#exporterConainter').dxExporter({ // ... sourceContainer: '#chartContainer' });
To export more than one widget into a single document, put these widgets into a div container and pass that container to the exporter.
<div id="charts"> <div id="chartA"></div> <div id="chartB"></div> </div>
$('#exporterConainter').dxExporter({ // ... sourceContainer: '#charts' });
If you have technical questions, please create a support ticket in the DevExpress Support Center.