wireui / wireui

TallStack UI components
https://v1.wireui.dev
MIT License
1.37k stars 166 forks source link

Select components to allow remote data #164

Closed putera closed 1 year ago

putera commented 2 years ago

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 !

Krato commented 2 years ago

Yes, this will help when dealing with big datasources

cloudstudio commented 2 years ago

This could be awesome

madurapa commented 2 years ago

A much-needed feature!

Basically, we need the same replica of what Select2 does.

PH7-Jack commented 1 year ago

It's is now released https://livewire-wireui.com/docs/select#async-search Thanks @putera

putera commented 1 year ago

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.

madurapa commented 1 year ago

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.

PH7-Jack commented 1 year ago

@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

image

madurapa commented 1 year ago

Great! Thanks for the explanation.