Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey!
First of all, thank you for this component, it's very useful in my project!
As a follow-up to #116, I added possibility to pass
options
Array, which then can be used in the component.It also exposes 2 methods:
optionMatches
- by default, it does case-insensitive matching, but it can be customised.decorateResult
- which can decorate options with whatever markup is needed in your app.It allows you to pass not only a plain array, but also an array of objects, with different name and values.
I didn't update the docs, nor did I provide any examples, because first I wanted to get your initial feedback on that.