ExcelExport

A subclass of React.Component.

props Readonly<{ children?: ReactNode; }> intersected with Readonly<ExcelExportProps>

The props of the ExcelExport component.

Methods

save

Saves the data to Excel.

Parameters

exportData? any[] | ExcelExportData | WorkbookOptions

An optional parameter. Can be the data that will be exported or the WorkbookOptions.

columns? ExcelExportColumnProps[] | ReactElement[]

An optional parameter. If present, it will be used instead of the columns prop or the child column components.

toDataURL

Returns a promise which will be resolved with the file data URI.

Parameters

exportData? any[] | ExcelExportData | WorkbookOptions

The optional data or the WorkbookOptions that will be used to generate the data URI.

columns? any[]

Returns

Promise - The promise that will be resolved by the file data URI.

workbookOptions

Based on the specified columns and data, returns WorkbookOptions.

Parameters

exportData? any[] | ExcelExportData

The optional data that will be exported.

externalColumns? ExcelExportColumnProps[] | ReactElement[]

The optional columns that will be used.

Returns

WorkbookOptions - The workbook options.