Skip to main content
Version: 2.1.4

IListViewProps

3p-core v2.1.4


3p-core / IListViewProps

Interface: IListViewProps

Props for the ListView component, a flexible and extensible SharePoint list rendering control.

Supports both traditional DetailsList and responsive TileView, as well as filtering, sorting, searching, exporting, and context menus.

Properties

PropertyTypeDescription
columnsIListviewColumn[]An array of columns to be rendered in the view, each mapping to a SharePoint field.
contextWebPartContextThe SPFx web part context required for SharePoint API access and filtering.
detailsListProps?Partial<IDetailsListProps>Optional overrides for Fluent UI's DetailsList props.
disableFiltering?booleanDisables column-based filtering entirely.
disableSorting?booleanDisables column-based sorting entirely.
forceTileView?booleanForces tile view layout regardless of screen width.
hideExport?booleanHides the Export to Excel button.
hideSearch?booleanHides the search box in the header.
hideSortAndFilterButton?booleanHides the sort and filter button in tile view.
highlightedFieldName?stringField to visually highlight in the tile view.
listViewHeaderText?stringOptional title or header text to show at the top of the list.
listViewServiceListViewServiceA configured instance of the ListViewService to interact with the SharePoint list and its items.
onDismissTileViewFilterSortPane?() => voidCallback fired when the tile view filter/sort pane is dismissed.
onItemClick?(item) => voidOptional handler fired when a list item is clicked.
onLoadingStateChanged?(loading) => voidCallback triggered when the loading state changes (e.g., during item fetch).
onRenderListViewControls?() => ElementAllows injecting custom UI controls above the list (e.g., command bar, filters).
onRenderSortAndFilterButton?(hasFilters, onClick) => ElementAllows customization of the Sort/Filter button in tile view.
onRenderTile?(item, columns) => anyOptional custom tile renderer for use with tile view mode.
onSelectionChanged?(selectedItems) => anyOptional onSelectionChanged. Ignored if SelectionMode is set to none
selectionMode?SelectionModeOptional selectionMode. Default value 'none'
tileViewFilterSortPaneExclusions?string[]Field names to exclude from filter/sort pane in tile view.
tileViewFilterSortPaneOpened?booleanControls whether the tile view filter/sort pane is open by default.
tileViewTreshold?numberThreshold below which the tile view is enabled automatically. Default 1185
translate?(text) => stringOptional translation function for labels like buttons and filters.
translatedFields?string[]Array of field internal names that require translation of their filter values.