Skip to content
Shamar

StatsOverviewWidget

From the /demo dashboard widget grid.
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

MethodDescription
static sortGrid order.
static columnSpan1–4 or full width.
static stats(ctx)Returns Stat[] (async).