Help Needed with Multiple SelectFilter Usage in advanced-tables-docs #16384
Replies: 2 comments 1 reply
-
What you are seeing isn't related to Advanced Tables. Filters (as well as other components) need to have unique names and if you have the same naming, the last one will be used. Since what you want to do is to have a slightly different relationship query depending on which tab you have (tabs BTW are a native Filament feature, presetViews are the plugin feature), you can pass $livewire to the closure and then reference that in the query and modify the query depending on which tab is active. I believe it is $livewire->activeTab. |
Beta Was this translation helpful? Give feedback.
-
@archilex Thanks for the reply. I know that the name of the filter is the issue. But as I said I've already tried with the different name of both filter but only first filter is showing on the panel. I've made changes like:
Order.php (Model)
It's showing only first filter. But if I use second filter outside below array then it's working fine.
Can you please tell me what can be issue? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Package
Table builder
Package Version
v3.3.8
How can we help you?
I’m currently working with this package advanced-tables-docs and facing an issue with SelectFilter. I want to have two filters like these:
But only the second filter is showing, or if I change the name, only the first shows.
Also I've filter like:
I've added tabs inside ListOrders.php
I want to show this filter if the tab is app.
Could you please help me understand why this is happening and how to fix it? Any guidance or suggestions would be highly appreciated.
Thanks in advance for your support!
Beta Was this translation helpful? Give feedback.
All reactions