F
Filament3mo ago
Abi

How do I go about aligning the widgets on a custom dashboard?

I created a new dashboard and added widgets with the following code
public function getHeaderWidgets(): array
{
return [
AccountWidget::class,
AppointmentCount::class,
];
}
public function getHeaderWidgets(): array
{
return [
AccountWidget::class,
AppointmentCount::class,
];
}
No description
10 Replies
Abi
Abi3mo ago
bump up
christmex
christmex3mo ago
thts wht i know, cmiiw
Abi
Abi3mo ago
Trying to align the AccountWidget and AppointmentCount widgets on the same line.
toeknee
toeknee3mo ago
You need to ensure the account widget has a column span of 1, it is either two or full.
Abi
Abi3mo ago
the account widget is the default one provided by filament. how do I change the column span for that? tried to create a widget and extended the default filament class and added set the column span 1 and that didn't help either
Abi
Abi3mo ago
ok, got it working, needed to set the column span for the other widget as well. but a new problem. Need to make the height of both the widgets the same.
No description
Absolium
Absolium3mo ago
For me adding a maxheight the widgets solved my problem
Abi
Abi3mo ago
as extra attributes?
Want results from more Discord servers?
Add your server
More Posts
Media Library - Download uploaded file again (i.e. pdf)Ahoy there First of all Kudos to the Project: Awesome! I am experimenting a little with what is poRedirect loop on tenant with subdomainI am just setting up tenancy and I am getting an error asdf.tac.test redirected you too many times Trying to run filament-demo from the public folder. HTTP 500 errorI am really loving filament and I have tried out the filament-demo locally by running "php artisan sI am trying to access a list of users who have a boolean "is_trainers" = true, kindly assist``` Forms\Components\Select::make('course_trainer_id') ->relationship('trainers', 'name') ->Filament not Updating to the latest packageHello, I've trying to update filament package, but it still uses 3.2.0, I tried removing the vendor USER Model is located in a diffrent pathI'm trying to log in my filament admin panel but when I click log in , an error pops up saying " ClaComputed Property Filter On Table Builder?Hey, I'm using Filament Tables outside of Filament just to quickly bootstrap an app I'm using a serNavigation Groups & navigationParentItem not workingHello, I have a ViewPage and its $navigationGroup is set to 'Group' but the link doesn't show up undHow to test list table search in translatable (via spatie) field with pestI have the following test: ```it('can search page by tistle', function () { $title = Page::fListening for broadcast eventsHi folks Been working with filament for a little bit now and really enjoying it. I’ve been buildin