HubSpot / react-select-plus

Fork of https://github.com/JedWatson/react-select with option group support
http://github.hubspot.com/react-select-plus/
MIT License
286 stars 93 forks source link

Custom options for Group #102

Closed sarates closed 6 years ago

sarates commented 6 years ago

How should I pass options to Select for USERS GROUP with this data structure?

{ "groups": [ { "id": "3124123123", "name": "CSD IT Apps", "users": [ { "id": "992694534", "timezone": "Europe/Berlin", "name": "John Doe", "profileImage": "https://randomuser.me/api/portraits/men/78.jpg" },

TrevorBurnham commented 6 years ago

See this example: https://github.com/HubSpot/react-select-plus#option-groups

sarates commented 6 years ago

So I cant conf it with "groups" and "users" labels? Always key "options" should be?

sarates commented 6 years ago

Or I should map my data to 'options' keys, not groups / users