DashboardConfig
DashboardConfig =
object
Defined in: packages/admin/src/types.ts:273
Configuration for the admin dashboard (the admin index page).
When no widgets are configured, the dashboard shows a count for every visible table and recent items from the first table.
Example
Section titled “Example”const dashboard: DashboardConfig = { widgets: [ { type: "count", table: "users", label: "Total Users" }, { type: "recent", table: "posts", label: "Recent Posts", limit: 10 }, ],};Properties
Section titled “Properties”widgets?
Section titled “widgets?”
optionalwidgets:DashboardWidget[]
Defined in: packages/admin/src/types.ts:275
Dashboard widget definitions. When omitted, the admin auto-generates widgets from the schema.