DataRecordListProps
@gravity-rail/react / DataRecordListProps
Interface: DataRecordListProps
Properties
className?
optionalclassName:string
columns?
optionalcolumns:string[]
Field slugs to show as columns. Defaults to the first 4 schema fields.
dataType
dataType:
DataType
emptyState?
optionalemptyState:ReactNode
Rendered when there are no records yet.
onDelete()?
optionalonDelete: (record) =>void
When provided, a "Delete" action is shown per row (table variant only).
Parameters
record
Returns
void
onEdit()?
optionalonEdit: (record) =>void
When provided, an "Edit" action is shown per row (table variant only).
Parameters
record
Returns
void
params?
optionalparams:ListRecordsParams
List query params (paging, member filter, search).
refreshKey?
optionalrefreshKey:unknown
Refresh trigger: change this value (e.g. after a create) to reload.
variant?
optionalvariant:"table"|"cards"
Presentational layout. Defaults to "table".