ListViewProps
ListViewProps<
T> =object
Defined in: packages/ui/src/types.ts:574
Props for the ListView composite component.
Composes PageContainerSlotProps, FilterBarProps, DataTableProps,
EmptyStateProps, BulkAction, and pagination controls into a full page
layout. This is the primary component @cfast/admin uses for every table view.
Handles loading/empty/data state transitions automatically.
- DataTableProps for the table configuration subset.
- DetailViewProps for the single-record counterpart.
Type Parameters
Section titled “Type Parameters”T = unknown
The row object type, forwarded to column rendering and selection.
Properties
Section titled “Properties”actions?
Section titled “actions?”
optionalactions:ClientDescriptor
Defined in: packages/ui/src/types.ts:601
Action descriptor for row-level actions.
breadcrumb?
Section titled “breadcrumb?”
optionalbreadcrumb:BreadcrumbItem[]
Defined in: packages/ui/src/types.ts:615
Breadcrumb trail items.
bulkActions?
Section titled “bulkActions?”
optionalbulkActions:BulkAction[]
Defined in: packages/ui/src/types.ts:613
Bulk actions shown when rows are selected.
columns?
Section titled “columns?”
optionalcolumns:ColumnShorthand<T>[]
Defined in: packages/ui/src/types.ts:599
Column definitions or key strings for the data table.
createAction?
Section titled “createAction?”
optionalcreateAction:ClientDescriptor
Defined in: packages/ui/src/types.ts:607
Action descriptor for the create button.
createLabel?
Section titled “createLabel?”
optionalcreateLabel:string
Defined in: packages/ui/src/types.ts:609
Label for the create button. Defaults to “Create”.
data:
object
Defined in: packages/ui/src/types.ts:578
Paginated data with optional pagination controls.
currentPage?
Section titled “currentPage?”
optionalcurrentPage:number
Current page number (offset pagination).
goToPage()?
Section titled “goToPage()?”
optionalgoToPage: (page) =>void
Navigate to a specific page (offset pagination).
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void
hasMore?
Section titled “hasMore?”
optionalhasMore:boolean
Whether more items are available (cursor pagination).
isLoading?
Section titled “isLoading?”
optionalisLoading:boolean
Whether data is currently being fetched.
items:
T[]
Array of row objects to display.
loadMore()?
Section titled “loadMore()?”
optionalloadMore: () =>void
Load the next page of items (cursor pagination).
Returns
Section titled “Returns”void
total?
Section titled “total?”
optionaltotal:number
Total number of matching records.
totalPages?
Section titled “totalPages?”
optionaltotalPages:number
Total number of pages (offset pagination).
filters?
Section titled “filters?”
optionalfilters:FilterDef[]
Defined in: packages/ui/src/types.ts:603
Filter definitions for the FilterBar.
searchable?
Section titled “searchable?”
optionalsearchable:string[]
Defined in: packages/ui/src/types.ts:605
Column names that support full-text search.
selectable?
Section titled “selectable?”
optionalselectable:boolean
Defined in: packages/ui/src/types.ts:611
Whether to enable row selection.
table?
Section titled “table?”
optionaltable:unknown
Defined in: packages/ui/src/types.ts:597
Drizzle table for column and filter type inference.
title:
string
Defined in: packages/ui/src/types.ts:576
Page title displayed in the header.