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

Dynamically add an item to the values array #22

Closed
suparnavg opened this issue Aug 24, 2018 · 1 comment
Closed

Dynamically add an item to the values array #22

suparnavg opened this issue Aug 24, 2018 · 1 comment

Comments

@suparnavg
Copy link

Fantastic plugin. Is it possible to let the user add an item to the values array on the fly? If they want to add a hashtag that isn't already in the hashValues array, is it possible to dynamically insert it in the array?

I tried doing this with a content change listener on the quill box - picking up the typed hashtag and adding it to the array - but it is a clunky and less-than-great implementation.

Would appreciate any help or pointers. Thanks!

@suparnavg suparnavg changed the title Add an item to the values array Dynamically add an item to the values array Aug 24, 2018
@MadSpindel
Copy link
Member

Yes, that is what you have the source callback for. You probably want to call something like jquery ajax with the search term and return matching results to the renderList function.

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

2 participants