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

Could you add custom templating funcionality? #27

Closed
martonx opened this issue Feb 27, 2018 · 3 comments
Closed

Could you add custom templating funcionality? #27

martonx opened this issue Feb 27, 2018 · 3 comments

Comments

@martonx
Copy link

martonx commented Feb 27, 2018

Hi,

First of all, thank you for your library, it is very useful! I would need handle and show more complex objects in autocomplete list. Could you add some functionality to use custom template like here: http://jqueryui.com/autocomplete/#custom-data

@charliekassel
Copy link
Owner

This exists already with the resultsDisplay prop.
You can pass in a function and it's argument will be the result item.

@martonx
Copy link
Author

martonx commented Feb 27, 2018

I would need not just simple computed for display, but I need to modify the dom structure in the autocomplete result list. For example add custom class, add custom icon in the ul - li

@charliekassel
Copy link
Owner

Feel free to submit a pull request with your changes.

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