rkit / react-select2-wrapper

Wrapper for Select2
MIT License
163 stars 97 forks source link

How can i add extra field on this select wrapper form? #57

Closed Sebszty closed 7 years ago

Sebszty commented 7 years ago

Now i can print id & text, i want to store and print one more value "extra". If it is possible?

data:[ {id:0,text:"asda",extra:"one"}, {id:1,text:"adasdas",extra:"two"}, ],

rkit commented 7 years ago

If you about data-* attributes:

{ text: 'documents', id: 3, 'data-prop': 'val' },