#Widgets columns not taking effect

12 messages · Page 1 of 1 (latest)

glacial cove
#

I have the column set on the new dashboard page to 3, but nothing I do makes the 3 widgets stay on the same line.

<?php

namespace App\Filament\Pages;

class Dashboard extends \Filament\Pages\Dashboard
{
    
    public function getColumns(): int | string | array
    {
        return [
            'default' => 3,
            'xl' => 3,
        ];
    }


}
<?php

namespace App\Filament\Widgets;

use Filament\Widgets\Widget;

class StripeDirectorySubscription extends Widget
{

    protected int | string | array $columnSpan = 1;
    protected static string $view = 'filament.widgets.stripe-directory-subscription';
}

Hope you can help.

urban radishBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

glacial cove
#

Any help on this please?

remote sundial
#

it could be multiple things, i had the same problem, can i see how you are calling your widgets?

#

you should do it like this, if this is your desired affect

#

i think, at least

glacial cove
remote sundial
#

oh, you have your own dashboard then not the admin panel provider?

remote sundial
glacial cove
#

how do i call them? Thanks