You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you published the resource files and customized them? (php artisan vendor:publish)
No
What is the problem?
Hey there,
I wanted to use the Flux ui components in my filters and I have started from the select to leverage the "Dynamic options".
From the powergrid docs I have implemented the "Dynamic Filter" and everything work just fine (I will not enter all the details that are out of the scope for my specific problem, but for a recap, I have created a blade wrapper component with all the necessary props that call a volt component that do all the heavy lifting).
My problem is related to the "clear" of the filter. inside src/Concerns/Filter.php there is a $unset var with a callback that clean the passed filter from the filters property, but the logic inside doesn't take care of the dynamic filters key.
I don't know if there is a better way, but maybe just a method for the dynamic filter to set the correct key?
On a similar note, the docs talks about WireUI as a filter options (btw the linked example doesn't work), with flux as a viable livewire UI component, maybe a integrated way would be sweet? If I need to manually integrate it, my way is considered ok or I need to follow a different path?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Livewire PowerGrid version
v6.6.6
Livewire version
v3.6.4
Laravel version
v12.36.1
Which PHP version are you using?
PHP 8.4
Which Theme are you using?
Tailwind
Have you published the resource files and customized them? (php artisan vendor:publish)
No
What is the problem?
Hey there,
I wanted to use the Flux ui components in my filters and I have started from the select to leverage the "Dynamic options".
From the powergrid docs I have implemented the "Dynamic Filter" and everything work just fine (I will not enter all the details that are out of the scope for my specific problem, but for a recap, I have created a blade wrapper component with all the necessary props that call a volt component that do all the heavy lifting).
My problem is related to the "clear" of the filter. inside src/Concerns/Filter.php there is a $unset var with a callback that clean the passed filter from the filters property, but the logic inside doesn't take care of the dynamic filters key.
I don't know if there is a better way, but maybe just a method for the dynamic filter to set the correct key?
On a similar note, the docs talks about WireUI as a filter options (btw the linked example doesn't work), with flux as a viable livewire UI component, maybe a integrated way would be sweet? If I need to manually integrate it, my way is considered ok or I need to follow a different path?
Code snippets
How do you expect it to work?
The clearFilter should consider also the dynamic filter
Please confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions