Skip to main content Skip to complementary content

exportData property

Information noteSTABLE.

This API is reliable and breaking changes are unlikely.

exportData(enable)

Enables or disables the ability to export data from the visualization extension and save it in an XLSX file. When set to true, the Export data context menu option is enabled for the visualization extension.

Version history

Version history
Version state Details
Introduced 3.0

Parameters

enable

Type: Boolean

Set to true to enable the Export data context menu option for the visualization extension, and set to false to disable.

Default is true.

Examples

Example: Basic example

var ext = {
	support: {
		snapshot: true,
		export: true,
		exportData: true
	}
};

Example: exportData as a function

In this example, the exportData property is used as a function and does not allow export of data when no data is available in the visualization extension.
{
	support: {
		exportData: function( layout ) {
			return layout.qHyperCube.qDataPages[0].qMatrix.length;
		}
	}
}

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!