React-select: Custom label

Created on 27 Oct 2017  路  5Comments  路  Source: JedWatson/react-select

Can we implement that ?
Currently, label of option always is string
image

All 5 comments

On the demo (http://jedwatson.github.io/react-select/), see custom Render Methods

Hi @trungnguyencmu, I did custom label with this format, I hope that it helps you https://codesandbox.io/s/8zv2w5o6k0

On the demo (http://jedwatson.github.io/react-select/), see custom Render Methods

That link is broken.

Hi @trungnguyencmu, I did custom label with this format, I hope that it helps you https://codesandbox.io/s/8zv2w5o6k0

optionRenderer and valueRenderer is the key! Thank you @trungnguyencmu

Hello -

In an effort to sustain the react-select project going forward, we're closing old issues.

We understand this might be inconvenient but in the best interest of supporting the broader community we have to direct our efforts towards the current major version.

If you aren't using the latest version of react-select please consider upgrading to see if it resolves any issues you're having.

However, if you feel this issue is still relevant and you'd like us to review it - please leave a comment and we'll do our best to get back to you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mjuopperi picture mjuopperi  路  3Comments

geraldfullam picture geraldfullam  路  3Comments

steida picture steida  路  3Comments

juliensnz picture juliensnz  路  3Comments

batusai513 picture batusai513  路  3Comments