Closed putera closed 1 year ago
Yes, this will help when dealing with big datasources
This could be awesome
A much-needed feature!
Basically, we need the same replica of what Select2 does.
It's is now released https://livewire-wireui.com/docs/select#async-search Thanks @putera
I love this features a lot. Async search is awesome. Thanks bro.
On 19 May 2022, at 2:55 PM, Pedro Oliveira @.***> wrote:
It's is now released https://livewire-wireui.com/docs/select#async-search Thanks @putera
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.
This is awesome! Thank you! I hope you have a plan to add more customizing parameters such as pagination, minimum characters to search, etc... those are handy when dealing with a bunch of data.
@madurapa You are free to create your APIs as you wish. The pagination is not the best choice for async search data. See the WireUI API guide as an example and implement it in your project. The basics are explained here https://livewire-wireui.com/docs/select
Just add a query limit, a search, and a way to retrieve the data. You're free to extend the select and modify as you wish too.
https://github.com/wireui/docs/blob/main/app/Http/Controllers/Api/Users/Index.php https://github.com/wireui/docs/blob/main/tests/Feature/Controllers/Api/Users/IndexTest.php
Great! Thanks for the explanation.
Is your feature request related to a problem? Please describe. I have a more than 10k data to load on the select component.
Describe the solution you'd like It would be great if the select component can load data as we type on the remote data
Describe alternatives you've considered Example of select 2 load data from remote
Thank you !