Skip to main content

IListViewExportToExcelProps

@spartanfx/react v1.2.2


@spartanfx/react / spfx / IListViewExportToExcelProps

Interface: IListViewExportToExcelProps

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

Properties

Required

PropertyTypeDescription
columnsIListviewColumn[]An array of column definitions to include in the Excel export.
listViewServiceListViewServiceA service instance used to fetch list data, typically wrapping PnPjs logic.

Options

PropertyTypeDescription
attributeOverride?objectMatrix with projected field override to target different projected field value
buttonText?stringOptional custom text to show on the export button. Defaults to "Export To Excel".
filters?objectOptional filter object where keys are field names and values are arrays of selected values.
searchText?stringOptional search string used to filter the list.
sortField?objectOptional sorting configuration: field name and direction.
sortField.SortDir?"Asc" | "Desc"-
sortField.SortField?string-
translatedFields?string[]Array of field names whose values should be passed through the translate function.

Events & callbacks

PropertyTypeDescription
translate?(key) => stringOptional translation function to localize labels.

Advanced & escape hatches

PropertyTypeDescription
buttonProps?Partial<IButtonProps>Optional props to customize the export button.