The List View is where users interact with a list of Collection Documents within the Admin Panel. This is where they can view, sort, filter, and paginate their documents to find exactly what they're looking for. This is also where users can perform bulk operations on multiple documents at once, such as deleting, editing, or publishing many.
The List View can be swapped out in its entirety for a Custom View, or it can be injected with a number of Custom Components to add additional functionality or presentational elements without replacing the entire view.
Note: Only Collections have a List View. Globals do not have a List View as they are single documents.
In addition to swapping out the entire List View with a Custom View, you can also override individual components. This allows you to customize specific parts of the List View without swapping out the entire view for your own.
To override List View components for a Collection, use the admin.components property in your Collection Config:
1
importtype{CollectionConfig}from'payload'
2
3
exportconstMyCollection:CollectionConfig={
4
// ...
5
admin:{
6
components:{
7
// ...
8
},
9
},
10
}
The following options are available:
Path
Description
beforeList
An array of custom components to inject before the list of documents in the List View. More details.
beforeListTable
An array of custom components to inject before the table of documents in the List View. More details.
afterList
An array of custom components to inject after the list of documents in the List View. More details.
afterListTable
An array of custom components to inject after the table of documents in the List View. More details.
listMenuItems
An array of components to render within a menu next to the List Controls (after the Columns and Filters options)
Description
A component to render a description of the Collection. More details.