widget width "$columnSpan = 'full';" doesn't work with blade-templates
I changed my table widget from filament-widget component to a blade template. Now, the $columnSpan = 'full'; doesn't work anymore and the widget appears in 1 column.
How can I expand it to be fullscreen?

Solution:Jump to solution
<x-filament-widgets::widget>
<x-filament::section>
....
....
</x-filament::section>...
20 Replies
Can we see the corasponding blade file please.
here 🙂
Is there a reison that you changed from a filament-widget component to a blade template?
because filament table widgets don't support tabs
tabs seems to be only supported in table resources
Oh, of course. I believe the css for 'column span' is in the widget template. I would personally convert this to a Livewire component, then call it in a custom filament widget and set the column span there. There may be a better way, but I need to look at the source code.
well... my knowledge is not the best. how will i do that? Its the first time I work with laravel and filament
My project would be on github: https://github.com/Feuerwehr-Bamberg-Loschgruppe-1/Strichliste
maybe, you can give me some hints? 🙂
GitHub
GitHub - Feuerwehr-Bamberg-Loschgruppe-1/Strichliste
Contribute to Feuerwehr-Bamberg-Loschgruppe-1/Strichliste development by creating an account on GitHub.
I can have a look latter. It might be easer for me to do a pull request so you can see what I mean. I ahve just thought of a nother option. Creat a custom widget that implements
HasTable
https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-componentwould be awesome 🙂 take as many time as u need 🙂
Have you try to put this function
seems not to work
Hey @MikePageDev did u had some tome to have a look to it? 😅
Not what you are asking for, but just in case, an easy solution would be to add filters to the table widget since these use the table builder.

this was my first try but then I found the tabs which looked better. but yeah... it's a bit annoying not to use them as I wanted 😦
Sorry, I have had a hectic week and weekend. The way I would go about what you are trying to achieve is
Create a custom widget https://filamentphp.com/docs/3.x/panels/dashboard#custom-widgets
And implement the
HasTable
interface https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component#adding-the-tableJust change your view <div> container for <x-filament-widgets::widget>
Solution
<x-filament-widgets::widget>
<x-filament::section>
....
....
</x-filament::section>
</x-filament-widgets::widget>

Thank you! This is what helped!
Why isnt that in the docu? 😄
I kind of is. What you have done here is convert to a Fliament custom widget