Custom data attributes on options
Rostyslav26 opened this issue · 0 comments
Rostyslav26 commented
Is there any way I can add custom data attributes on options based on my data? I think select2 has such a function https://stackoverflow.com/questions/33940477/adding-data-attributes-with-select2
For example I have json data '{"text":"John", "id":30, "age":30}'
,
I expect there will be a data-age attribute on options