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

Allows custom matcher and highlighter functions to be provided #159

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

theteknocat
Copy link

Resolves #46

This adds two new props to VueTypeaheadBootstrap and VueTypeaheadBootstrapList for "matcher" and "highlighter". The former just passes them along to the latter for use.

Then in the list component it will use those, if present, and otherwise fallback on the default matching and highlighting that was there before.

All you need to do to use this is create your custom matcher and/or highlighter functions, import those into your vue file that's implementing this component and specify those functions in the properties of the component in your vue template.

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

Successfully merging this pull request may close these issues.

Fuzzy matching?
1 participant