How do I go about aligning the widgets on a custom dashboard?
I created a new dashboard and added widgets with the following code
10 Replies
bump up
what do u want to achieve?, i think there is no way, except you create custom widget [https://filamentphp.com/docs/3.x/widgets/adding-a-widget-to-a-blade-view#overview]
or you can add extraAttribute for each card
[https://filamentphp.com/docs/3.x/widgets/stats-overview#adding-extra-html-attributes-to-a-stat]
thts wht i know, cmiiw
Trying to align the
AccountWidget
and AppointmentCount
widgets on the same line.You need to ensure the account widget has a column span of 1, it is either two or full.
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
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.
For me adding a maxheight the widgets solved my problem
as extra attributes?
Sorry I didn’t see your message.
Setting this is what worked for me
https://filamentphp.com/docs/3.x/widgets/charts#setting-chart-configuration-options