Adding filters to a Page and manipulating its widgets' content with them
Can I somehow add filters to a Page and then pass the filter values through a widget and use it inside the widget?
I am using the FullCalendar plugin and it is limited only to dates when it comes to filtering the calendar content. In this plugin, the calendar is contained inside a widget hence my question.
5 Replies
maybe this article can help:
https://filamentphp.com/blog/how-to-refresh-widgets-when-table-actions-are-fired
Filament
How to Refresh Widgets When Table Actions Are Fired by Leandro C. F...
Filament is a collection of tools for rapidly building beautiful TALL stack apps, designed for humans.
☝️ that's the right way to do it
In my case it is going to be a Page not a Table
What do you think?
I missed the part where it sends a value to a widget from page
I don't even know how can i create filters inside my page
How are you going to implement your filters, as a custom form?
An idea: In your custom page, you could add a Livewire component for the custom form/filters. When the form is submitted (e.g. by clicking "Apply filters") you can emit an event to all widgets with the form data
Thanks for the idea, will see if that will be ok