F
Filament9mo 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
AbiOP9mo ago
bump up
christmex
christmex9mo ago
thts wht i know, cmiiw
Abi
AbiOP9mo ago
Trying to align the AccountWidget and AppointmentCount widgets on the same line.
toeknee
toeknee9mo ago
You need to ensure the account widget has a column span of 1, it is either two or full.
Abi
AbiOP9mo 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
AbiOP9mo 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
Absolium9mo ago
For me adding a maxheight the widgets solved my problem
Abi
AbiOP9mo ago
as extra attributes?
Want results from more Discord servers?
Add your server