Skip to content

IExportingJSONOptions

Type interface

Sources

IExportingJSONOptions is an interface: it describes a shape of data and is not imported on its own.

Inheritance

IExportingJSONOptions extends IExportingDataOptions.

IExportingJSONOptions is not extended by any other symbol.

Properties

indent

Type string | numberDefault 2

Indentation of the JSON: a number of spaces, or a string to indent with.

renameFields

Type undefined | false | trueDefault true

Uses the column names from dataFields as keys, instead of the field names. Has no effect without dataFields.

6 inherited items
addColumnNames

Type undefined | false | trueDefault trueInherited from IExportingDataOptions

Adds the column names as the first row (or column, with pivot) in CSV, HTML, XLSX and PDF tables.

disabled

Type undefined | false | trueInherited from IExportingFormatOptions

Leaves this format out of the ExportingMenu.

emptyAs

Type undefined | stringInherited from IExportingDataOptions

Text for empty values: "-" in HTML by default, an empty string in the other formats.

pivot

Type undefined | false | trueInherited from IExportingDataOptions

Swaps rows and columns, so that each field is a row.

useLocale

Type undefined | false | trueDefault falseInherited from IExportingDataOptions

Formats dates in the browser's locale instead of with dateFormat.

useTimestamps

Type undefined | false | trueDefault falseInherited from IExportingDataOptions

Exports dates as timestamps instead of formatted dates.