IExportToExcelButtonProps
3p-core / IExportToExcelButtonProps
Interface: IExportToExcelButtonProps
Props for the ExportToExcelButton
component.
Properties
Property | Type | Description |
---|---|---|
buttonText? | string | Optional text to display on the export button. Defaults to "Export To Excel". |
directDownload? | boolean | If true, hides the button and triggers a direct download. |
fileName? | string | Optional file name for the exported Excel file. Defaults to "download". |
items | IExportToExcelItem | An object containing datasets for each sheet to be exported. |
schema | IExportToExcelSchema | A schema that defines the columns and labels for each Excel sheet. |
translate? | (key ) => string | Optional translation function to localize field values. |
translatedFields? | string [] | List of field names that should be passed through the translate function. |