Skip to main content
Version: 2.1.4

IListViewExportToExcelProps

3p-core v2.1.4


3p-core / IListViewExportToExcelProps

Interface: IListViewExportToExcelProps

Props for the ListViewExportToExcel component, which enables exporting SharePoint list data to Excel.

Properties

PropertyTypeDescription
buttonProps?Partial<IButtonProps>Optional props to customize the export button.
buttonText?stringOptional custom text to show on the export button. Defaults to "Export To Excel".
columnsIListviewColumn[]An array of column definitions to include in the Excel export.
filters?objectOptional filter object where keys are field names and values are arrays of selected values.
listViewServiceListViewServiceA service instance used to fetch list data, typically wrapping PnPjs logic.
searchText?stringOptional search string used to filter the list.
sortField?objectOptional sorting configuration: field name and direction.
sortField.SortDir?"Asc" | "Desc"-
sortField.SortField?string-
translate?(key) => stringOptional translation function to localize labels.
translatedFields?string[]Array of field names whose values should be passed through the translate function.