ListView
3p-core / ListView
Variable: ListView
const
ListView:React.FunctionComponent
<IListViewProps
>
Renders a powerful, configurable SharePoint list viewer with support for:
- Fluent UI
DetailsList
and responsive tile view - Column filtering, sorting, and search
- Export to Excel
- Infinite scrolling
- Custom field renderers
This component is highly extensible and can be themed, localized, and dynamically updated through the ListViewService
.
Examples
<ListView
listViewService={listViewService}
columns={[
{ fieldName: 'Title' },
{ fieldName: 'Status' }
]}
context={context}
/>
<ListView
listViewService={listViewService}
columns={[
{ fieldName: 'Title' },
{ fieldName: 'Status' }
]}
context={context}
selectionMode={SelectionMode.multiple}
onSelectionChanged={(selectedItems: any[]) => console.log(selectedtems)}
/>