Closed khoandse closed 8 years ago
Is there any way to pass option "maximumSelectionLength" into the component?
Select2's way: select2.github.io/examples.html#multiple-max
I tried your way: https://github.com/rkit/react-select2-wrapper#properties But it didn't work.
You should use options. Example:
options
<Select2 multiple data={['bug', 'feature', 'documents', 'discussion']} options={ { maximumSelectionLength: 2, placeholder: 'search by tags', } } />
Is there any way to pass option "maximumSelectionLength" into the component?
Select2's way: select2.github.io/examples.html#multiple-max
I tried your way: https://github.com/rkit/react-select2-wrapper#properties But it didn't work.