Search is not working when each option contains multiple words

336 views
Skip to first unread message

don.pro...@gmail.com

unread,
May 28, 2014, 3:33:15 PM5/28/14
to sel...@googlegroups.com
Hi,

Does anyone have a fix for this?

Go to: http://select2.program-it.ca/

Try searching by typing any letter. The scrolled to option does not match the letter chosen. I would like it to match the first letter of the first word only.

Can this be done?

Thanks / Don

Barry Hunter

unread,
May 28, 2014, 3:42:58 PM5/28/14
to sel...@googlegroups.com
You can override the 'matcher' function, so that can apply custom filtering, rather than the default 'anywhere'. 

There is actully a demo doing that on the project page



--
You received this message because you are subscribed to the Google Groups "select2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to select2+u...@googlegroups.com.
To post to this group, send email to sel...@googlegroups.com.
Visit this group at http://groups.google.com/group/select2.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages