Changelog
4.0.0
This builds upon the second release candidate, so review all previous release notes before upgrading from previous versions of Select2.
jQuery.noConflict
.<select>
is the recommended element and can be used for all options. There is limited backwards-compatible support for the <input>
element in full builds.data-*
attributesen-US
) and Select2 will be able to determine what translation files to load.bower.json
/component.json
files.<select>
has replaced <input type="hidden" />
for all options (including remote data)matcher
has been revamped to include full context, a compatibility module (select2/compat/matcher
) has been createdselectionAdapter
with the ClickMask
(select2/selection/clickMask
) decorator.StopPropagation
modules available in the full builds to prevent this. [https://github.com/select2/select2/commit/8f8140e3b00c5d5bb232455137c4c633d7da4275]width
option has been changed from style
to resolve
.copy
value for the width
option has been renamed to style
.formatSelection
-> templateSelection
formatResult
-> templateResult
sortResults
-> sorter
createSearchChoice
-> createTag
selectOnBlur
-> selectOnClose
ajax.jsonpCallback
-> ajax.jsonp
ajax.results
-> ajax.processResults
tags: [array,of,data]
-> data: [array,of,data], tags: true
placeholderOption
has been replaced by placeholder.id
(placeholder
-> placeholder.text
)