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
Patrick Boivin
I think this can be set on the Dashboard page class directly
ssmusoke
ssmusoke17mo ago
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
Patrick Boivin
Patrick Boivin17mo ago
Can you share some code from your Blade component, just to illustrate how you are using the widget?
ssmusoke
ssmusoke17mo ago
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; }

Did you find this page helpful?