ExcelExport
A subclass of React.Component.
props
Readonly<ExcelExportProps> intersected with Readonly<{ children?: ReactNode; }>
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<string>
- 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
- The workbook options.