javascript - Can I use select2 purely as a tokenizer, disabling the dropdown/search/match functionality? -
i have multiple instances of select2 elements in form, in 1 of them (which on hidden input) want tokenize input.
i dont want dropdown ever show because shows "no matches found" , confuses users. need disable dropdown , use select2 tokenizer specific element. possible?
(i know can out plugin want use plugin decorates tokens , removes icon , uniform other inputs use it)
used approach described @paralife.
found there option dropdowncss
sets dropdown style. dropdowncss:{display:'none'}
enough disable well.
Comments
Post a Comment