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

Can you add autocomplete function? #2

Open
tolerious opened this issue Nov 25, 2016 · 22 comments
Open

Can you add autocomplete function? #2

tolerious opened this issue Nov 25, 2016 · 22 comments

Comments

@tolerious
Copy link

tolerious commented Nov 25, 2016

2016-11-25 1 38 16

such as this, get the prompt data from backend.

@matiastucci
Copy link
Owner

matiastucci commented Nov 25, 2016

Hi! I still have to finish some stuff and be sure that the component is stable. Once I finish with that I would like to implement this. Thanks for the suggestion.

@tolerious
Copy link
Author

THX, I am using your component in my project.

@HectorMalot
Copy link

Can I suggest to leave this issue open to keep track of the work for autocomplete?

@matiastucci matiastucci reopened this Mar 18, 2017
@unitedworx
Copy link

further to autocomplete it would be nice if validators can talk to a backend. e.g imagine tags being products codes and a validator being able to talk to the backend using an axios/ajax call and return trey or false if the product exists or not.

nice work on this component.

@pdey
Copy link

pdey commented Jun 26, 2017

Hi. Thanks for your work on this component.
I also wanted an autocomplete functionality but i would like to compose a custom component with this one to achieve the same. However, i need a callback on the event of input change, so that i can use the partial input text to generate a list of autocomplete options. Can i send a pull-request for this change? Should be very simple.

@matiastucci
Copy link
Owner

sure :)

@richlove1
Copy link

Autocomplete / callback on-change functionality would be super cool 👍

@EvanZ
Copy link

EvanZ commented Aug 4, 2017

Basically just need a @keyup functionality for this right? Then make a http call to your tag db or other source of tag data (maybe in Vuex).

https://gist.github.com/EvanZ/13d3d7dd4d29e9ab39ad39ffa8dcfef8

@michaelmano
Copy link

I might make a fork of this to work on this since I require it for a project but don't wish to reinvent the wheel.

Also since its just used for tags I don't think an http call is required since most of the time you are just checking if tags exist. maybe just pass it an array like the pre filled ones then checking if the value exists in array if so suggest it, to start with at least.

@unitedworx
Copy link

@michaelmano think of tags being products codes and products being tens of thousands, does not make sense to give it an array of thousands of valid product codes but make much sense to make an Ajax call to validate if the code exists! if the validation is implemented in some sort of function callback then its up to you to simply check an array or make an Ajax call depending on your needs!

@michaelmano
Copy link

@unitedworx then maybe have either option. An auto complete array for smaller things and an auto complete URL that will post with a denounce function to get an array

@hackuun
Copy link

hackuun commented Feb 21, 2018

Autocomplete is must have feature, please consider to add it.

@LorrainInfinity
Copy link

Mmmmh this component is really useful. Too bad it's not 100% finished, it lacks a few methods you don't seem to be willing to implement I guess I'll have to do it on my own ^^'

@ianaya89
Copy link
Collaborator

@LorrainInfinity Sometimes is really hard to make enough time to maintain an open source project but PR's are welcome 😉

@LorrainInfinity
Copy link

@ianaya89 Yes that's true ^^. It doesn't lack much and I think it could be useful enough to a lot of people but I'm trying to use it for a very complex architecture so I'll have to improve it a bit :p

@matiastucci
Copy link
Owner

@LorrainInfinity besides this feature, what else is missing in your opinion?

@LorrainInfinity
Copy link

LorrainInfinity commented Feb 21, 2018

It'd be great to be able to detect which element was deleted. I know you did add a update:tags method (btw you should add it on the home page of the git project so people know about it :p). But I need to know exactly what element is removed from the array of elements.

On another hand it'd be great to be able to pass an array of objects as tags, and if so, add a "track-by" prop so it tracks based on a specific key. That's because I need to create an array of strings instead of using my real array of objects.

And why not fancy props like background-colors, colors etc to fit people's design but as I said, that's just fancy stuff :p

@EvanZ
Copy link

EvanZ commented Feb 21, 2018

@LorrainInfinity You might check out Vuetify which pretty much has all these features in their multi-select. https://vuetifyjs.com/en/components/selects#api

@LorrainInfinity
Copy link

Mmh yes maybe it could work but what I really need here is a tag creator not a multiselect (even though I saw that there is a "tag" option to allow tag creation, but in the end, it'll still be a select list isn't it?).

Anyway thank you for the component I'll look into that :)

@EvanZ
Copy link

EvanZ commented Feb 22, 2018

You can use it as a multi-select but also add new tags. Overall, I'm very hapy with vuetify. You can see I use it for my site: https://catapolt.co.

@tomaytotomato
Copy link

tomaytotomato commented Mar 15, 2018

Yea this feature will be very useful.

@demonodojo
Copy link

I have added this PR to allow implement autocomplete out of the component:
#63

matiastucci pushed a commit that referenced this issue Apr 2, 2020
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.7.4. **This update includes a security fix.**
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](handlebars-lang/handlebars.js@v4.1.2...v4.7.4)

Signed-off-by: dependabot-preview[bot] <[email protected]>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests