QUESTPIE
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],
  }),
)
OptionTypeDescription
columnsField[]Fields to show as columns
searchableFieldsField[]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" },
  }),
)

Mark fields as searchable for the global search bar:

.list(({ v, f }) =>
  v.collectionTable({
    searchableFields: [f.title, f.slug, f.tags],
  }),
)

On this page