Skip to main content
Version: 2.1.4

IExportToExcelButtonProps

3p-core v2.1.4


3p-core / IExportToExcelButtonProps

Interface: IExportToExcelButtonProps

Props for the ExportToExcelButton component.

Properties

PropertyTypeDescription
buttonText?stringOptional text to display on the export button. Defaults to "Export To Excel".
directDownload?booleanIf true, hides the button and triggers a direct download.
fileName?stringOptional file name for the exported Excel file. Defaults to "download".
itemsIExportToExcelItemAn object containing datasets for each sheet to be exported.
schemaIExportToExcelSchemaA schema that defines the columns and labels for each Excel sheet.
translate?(key) => stringOptional translation function to localize field values.
translatedFields?string[]List of field names that should be passed through the translate function.