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

Custom render TypeaheadOption children #232

Open
dmacthedestroyer opened this issue May 4, 2017 · 0 comments
Open

Custom render TypeaheadOption children #232

dmacthedestroyer opened this issue May 4, 2017 · 0 comments

Comments

@dmacthedestroyer
Copy link

I see there's a customListComponent that will allow you to override the default implementation of how it renders and behaves, but this is a really heavyweight option if all I want to do is control how the individual options render.

In my particular case, I need to style an option differently if it's a certain value but I can't seem to do that unless I rewrite the whole customListComponent.

I'd like to have a customOptionComponent (or have the displayOption prop be able to be a function with a node return type) or something so I could conditionally render the options without having to duplicate your selector and option code or having to reimplement all that behavior.

Is this something that I'm already capable of and am not seeing it, or would this be added functionality? I'm happy to work to include this, if need be, and am open to implementation suggestions.

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

1 participant