Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Autocomplete Control #927

Open
2 tasks
maslamhmt opened this issue May 17, 2024 · 3 comments
Open
2 tasks

[Feature]: Autocomplete Control #927

maslamhmt opened this issue May 17, 2024 · 3 comments

Comments

@maslamhmt
Copy link

Describe the feature

Hi! I'm delighted to try radix-vue controls. Could you please add an auto-complete control for database filtering and selection?

Additional information

  • I intend to submit a PR for this feature.
  • I have already implemented and/or tested this feature.
@zernonia
Copy link
Collaborator

Hi @maslamhmt . Please add more context on what this feature means. Either show show example, or explain in much more details 😁

@unpseudocomplique
Copy link

Hi @maslamhmt . Please add more context on what this feature means. Either show show example, or explain in much more details 😁

I will add more contexte because i think this is the same request as i have.

Combobox is great but it's limited to client side filter. In a real world app 90% have to be filter by backend.

In fact the component need a component that when reaching bottom of scroll fetch next page (so maybe require a new emit "fetch-next-page") a backend filter function like when you type it trigger an async function that will replace the original array and reset "currentPage" to 0

I hop this was clear !

@maslamhmt
Copy link
Author

Hi @zernonia and @unpseudocomplique, Autocomplete Control is the same as Combobox. The difference is Autocomplete control uses items from the database, like binding data from the database table. By default, it will not show you the items. When you type something, it will search from the database with respective data and bind it with autocomplete control to show you. For Example, I want to search for some country. When I try to search Pakistan or India, I have to write just pak it will show Pakistan as a result in the dropdown. I hope this one clears.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants