F
Filament14mo ago
Mook

Stats widgets in rows of 4 columns

I have a view page which has stats widgets on. I want to display them in rows of 4. So I've set the below in my view page. public function getHeaderWidgetsColumns(): int | array { return 4; } After this in the same class I call all the widgets using: protected function getHeaderWidgets(): array { return [ //my widgets ] } But no matter what I do it won't display anything other than a row of 3 widgets. Am I missing something here?
2 Replies
alexanderkroneis
alexanderkroneis14mo ago
I think you have to specify the columns in the widget itself.
Mook
MookOP14mo ago
I've added the getHeaderColumns() function into my statswidgets class as well but this doesn't do anything either. The only thing that seems to alter the formatting is the $columnSpan array but this will only shrink all of the stats widgets as a group, I guess because they're all created in the same class.
Want results from more Discord servers?
Add your server