Stats overview widgets: number of widgets per row
I've searched the docs, but can't seem to find anything. Is the number of widgets per row customisable or does it need to be applied through a CSS change?
5 Replies
I think this can be set on the Dashboard page class directly
How about if I am using the widget in a custom blade component, I have seen a $this->getColumns() in the stats-overview-widget.blade.php
Can you share some code from your Blade component, just to illustrate how you are using the widget?
On further digging, I found the getColumns() method in the StatsOverviewWidget class so I have just overriden it in my widget and it works like a charm
protected function getColumns(): int {
return 3;
}