exportData property

Note: STABLE.
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

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;
		}
	}
}