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
Patrick Boivin16mo ago
I think this can be set on the Dashboard page class directly
ssmusoke
ssmusoke15mo 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 Boivin15mo ago
Can you share some code from your Blade component, just to illustrate how you are using the widget?
ssmusoke
ssmusoke15mo 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; }
Want results from more Discord servers?
Add your server