onox...@gmail.com
unread,Mar 31, 2017, 3:22:22 AM3/31/17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to select2
Hello, I have to migrate some code (not written by me) from Select2 3.4.0 to 4.0.3. The function for the formatResult option in the old code uses all of the four parameters (result, container, query, escapeMarkup) that are accepted by the default formatResult in 3.4.0, but now in 4.0.3, the new function, templateResult, only gets the first two named parameters, result and container. I couldn't find in the documentation or elsewhere how one should change the code to deal with the loss of query and escapeMarkup. What should I do ? Thanks