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
{{ message }}
This repository was archived by the owner on Jun 27, 2024. It is now read-only.
@darkons thank you very much for explainiing the code works perfectly and it helped undrestood the process, the only thing is when i change the page ( in pagination table ) i lose the price filters , & when i input price between filters i lose old filters provided by table api, is there a way to merge them together ? ( im new to inertia )
With a few modifications to write back the parameters to my model values (in your case minPrice and maxPrice refs) it worked also for my usecase.
However, it looks not very integrated. Is there a nice way to integrate such custom filter forms into the tables search interface that is rendered when I set the field to searchable?
Activity
[-]Input search range ( example for prince min & max) [/-][+]Input search range ( example for price min & max) [/+]darkons commentedon Oct 24, 2022
That is not related to this package. You have to use Spatie Query Builder filters.
https://spatie.be/docs/laravel-query-builder/v5/features/filtering#content-scope-filters
Just create your range inputs and make a request to your controller with the filter:
BenOussama180 commentedon Oct 24, 2022
@darkons is there a way to integrate them nicely inside the filters dropdown in the table component ?
BenOussama180 commentedon Oct 24, 2022
@darkons i didnt really get the method u talked about can you please give me more details for backend & frontend ^^thank u
darkons commentedon Oct 25, 2022
BenOussama180 commentedon Oct 26, 2022
@darkons thank you very much for explainiing the code works perfectly and it helped undrestood the process, the only thing is when i change the page ( in pagination table ) i lose the price filters , & when i input price between filters i lose old filters provided by table api, is there a way to merge them together ? ( im new to inertia )
darkons commentedon Oct 26, 2022
You must rebuild the current URL query string
mbeckerle-xqueue commentedon Jan 8, 2023
With a few modifications to write back the parameters to my model values (in your case minPrice and maxPrice refs) it worked also for my usecase.
However, it looks not very integrated. Is there a nice way to integrate such custom filter forms into the tables search interface that is rendered when I set the field to searchable?
BenOussama180 commentedon Jan 8, 2023
@mbeckerle-xqueue please let me know if you managed to do that