Build Your WorkspaceViews
List Views
Configure table views — columns, sorting, search, and display.
List views control how collections appear in the admin table. Configure them with .list() on your collection.
Basic Table
.list(({ v }) => v.collectionTable({}))With no additional config, the table shows all fields as columns with default rendering.
Custom Columns
Specify which fields to show and their order:
.list(({ v, f }) =>
v.collectionTable({
columns: [f.name, f.email, f.isActive, f.createdAt],
searchableFields: [f.name, f.email],
}),
)| Option | Type | Description |
|---|---|---|
columns | Field[] | Fields to show as columns |
searchableFields | Field[] | Fields included in text search |
defaultSort | { field, direction } | Default sort order |
Sorting
Tables support sorting by any column. Set a default:
.list(({ v, f }) =>
v.collectionTable({
defaultSort: { field: f.createdAt, direction: "desc" },
}),
)Search
Mark fields as searchable for the global search bar:
.list(({ v, f }) =>
v.collectionTable({
searchableFields: [f.title, f.slug, f.tags],
}),
)Related Pages
- Form Views — Edit forms
- Filters — Advanced filtering
- Collections — Collection builder