StatsOverviewWidget
export class ProductStatsWidget extends StatsOverviewWidget { static override sort = 10 static override columnSpan = 'full'
static override async stats(ctx) { return [ Stat.make('Total products', count).description('In catalog').color('primary'), ] }}Methods
| Method | Description |
|---|---|
static sort | Grid order. |
static columnSpan | 1–4 or full width. |
static stats(ctx) | Returns Stat[] (async). |