-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add more documentation about completion/link/filter to README #48
Comments
Look at the signature of completion:
This is pseudo TypeScript. You can use: var tags = tagger(input, {
completion: {
list(str) {
return fetch(`/api/completion?text=${str}`).then(res => res.json());
},
delay: 500,
min_length: 2
}
}); There is only missing argument to the function in README. |
I've added some documentation to the demo. There is also a need to add some docs to README. |
Typescript signatures aren't my thing. I assume the signature should be interpreted as: In my case I guess I would need to create a new Promise that wraps the fetch and changes
|
Yes, exactly. |
I want to use a tagging component for adding keywords to an item. There can be thousands of keywords,
so I want to have:
Thanks.
The text was updated successfully, but these errors were encountered: