What are the equivalents to formatInputTooShort & formatResult in version 4.0?

6 views
Skip to first unread message

eibo...@gmail.com

unread,
Jun 14, 2016, 6:11:44 PM6/14/16
to select2
formatInputTooShort: "Please enter X or more characters so that you can ..."
formatResult: (variable) ->
$variable = $(variable.element)
anothervariable = $variable.data('data-name')

anotherVariableElement = $"<div class='data-name'>#{anothervariable}</div>"

return $variable + anotherVariableElement

How can I convert this to select2 version 4.0?

Reply all
Reply to author
Forward
0 new messages