IListViewExportToExcelProps
3p-core / IListViewExportToExcelProps
Interface: IListViewExportToExcelProps
Props for the ListViewExportToExcel
component, which enables exporting SharePoint list data to Excel.
Properties
Property | Type | Description |
---|---|---|
buttonProps? | Partial <IButtonProps > | Optional props to customize the export button. |
buttonText? | string | Optional custom text to show on the export button. Defaults to "Export To Excel". |
columns | IListviewColumn [] | An array of column definitions to include in the Excel export. |
filters? | object | Optional filter object where keys are field names and values are arrays of selected values. |
listViewService | ListViewService | A service instance used to fetch list data, typically wrapping PnPjs logic. |
searchText? | string | Optional search string used to filter the list. |
sortField? | object | Optional sorting configuration: field name and direction. |
sortField.SortDir? | "Asc" | "Desc" | - |
sortField.SortField? | string | - |
translate? | (key ) => string | Optional translation function to localize labels. |
translatedFields? | string [] | Array of field names whose values should be passed through the translate function. |