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

Suggest needs a more flexible inputValueRenderer #3556

Open
tnrich opened this issue May 14, 2019 · 3 comments
Open

Suggest needs a more flexible inputValueRenderer #3556

tnrich opened this issue May 14, 2019 · 3 comments

Comments

@tnrich
Copy link
Contributor

tnrich commented May 14, 2019

I think it would be great if the Suggest component (and perhaps InputGroup's in general) could optionally render something other than a string as their value. For example, for a color Suggest it would be very useful to have the input look more like:

image

Any thoughts on this @giladgray ?

Thanks!

@giladgray
Copy link
Contributor

giladgray commented May 14, 2019

@tnrich I agree with this request but there's a pretty significant hurdle here: Suggest renders an input which only accepts string values. You can, however, use inputProps.icon etc to render the colored square.

@tnrich
Copy link
Contributor Author

tnrich commented May 14, 2019

@giladgray I understand that. I think something should change in that case because it is quite a limitation currently.

I think it should probably render a modified TagInput like MultiSelect does. I'm going to basically modify the MultiSelect to turn it into a single select for my needs because the Tag value can be much more easily customized.

@giladgray
Copy link
Contributor

@tnrich please share how that goes, I'm sure the results will be interesting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants