How to build Dashboard widget with select
Hey together!
I need to build an Dashboard widget with an select, like 1 day, 7 days, 1 month, 3 months, 6 months, 1 year
How i can build an widget with this?
Solution:Jump to solution
1) php artisan make:filament-widget TestWidgetSelect
2) Select the option for Livewire
3) You will have something like this:
```php
<?php...
22 Replies
Solution
1) php artisan make:filament-widget TestWidgetSelect
2) Select the option for Livewire
3) You will have something like this:
4) Go the blade file and add:
Also dont forget to add the widget to your panel!!
The TestWidgetSelect is directly an Livewire Component?
& Thank you very muc
much*
Nah, sorry thats just how I named the widget
No problem. If this works, please mark it as solution so others can see it
Sure
Yes, thats right - But you set the model to status - So the "TestWidgetSelect"-Class is directly in the backend an Livewire Component?
Yes, as far as I know it is a LIvewire component
Thank you very much
Thank you very much
you're welcome:)
I have the issue, that the width isnt still working..
You have an Idea for this?
wdym isnt working?
no :/
no, like. What do you mean?
the columnSpan
It should be fit the 3 columns on the full width
you want them spread out evenly?
Yes
You have an Idea for this @Matthew ?
Yes
Go to the Dashboard file (or the LiveWire component) and add this:
Already tried, same
But i cant even find the issue