1
0
mirror of synced 2024-11-23 05:26:10 +03:00
Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.
Go to file
2013-03-14 10:00:25 -07:00
component.json modified version identifiers in descriptors for release 3.3.1 2013-02-20 09:57:22 -08:00
LICENSE strip down license header 2013-02-21 09:16:25 -08:00
README.md Mentioning i18n in README 2013-03-13 17:59:59 +01:00
release.sh updated release script 2013-02-05 18:33:42 -08:00
select2_locale_de.js add German translation 2013-02-20 22:42:36 +01:00
select2_locale_en.js.template Suggesting author header in translation files 2013-03-13 18:01:28 +01:00
select2_locale_es.js added spanish translation. fixes #883 2013-02-19 09:17:15 -08:00
select2_locale_fr.js fix typos in the French translation 2013-02-28 15:40:59 +01:00
select2_locale_hu.js added Hungarian translation 2013-02-20 02:40:45 -08:00
select2_locale_it.js add [it] locale transations 2013-02-13 00:53:25 -08:00
select2_locale_nl.js Dutch language support 2013-03-07 20:24:45 +01:00
select2_locale_pt-BR.js Add Brazilian Portuguese translation 2013-02-22 02:37:41 -03:00
select2_locale_pt-PT.js Fixed artifacts in pt-PT translation 2013-03-04 20:35:55 -05:00
select2_locale_ru.js Create select2_locale_ru.js 2013-02-21 13:21:49 +04:00
select2_locale_sv.js Swedish translation 2013-03-13 19:06:08 +01:00
select2_locale_zh-CN.js Chinese Locale Added 2013-03-04 01:46:06 +08:00
select2-spinner.gif Rename spinner.gif to select2-spinner.gif to prevent collisions with very common filename. 2012-10-13 12:31:25 -05:00
select2.css Centering select2 vertically 2013-03-14 15:00:09 +01:00
select2.jquery.json modified version identifiers in descriptors for release 3.3.1 2013-02-20 09:57:22 -08:00
select2.js always show spinner during searching. fixes #950 fixes #943 2013-03-14 10:00:25 -07:00
select2.png Retina-ize icons 2012-08-20 16:26:18 +01:00
select2x2.png Retina-ize icons 2012-08-20 16:26:18 +01:00

Select2

Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results. Look and feel of Select2 is based on the excellent Chosen library.

To get started -- checkout http://ivaynberg.github.com/select2!

What Does Select2 Support That Chosen Does Not?

  • Working with large datasets: Chosen requires the entire dataset to be loaded as option tags in the DOM, which limits it to working with small-ish datasets. Select2 uses a function to find results on-the-fly, which allows it to partially load results.
  • Paging of results: Since Select2 works with large datasets and only loads a small amount of matching results at a time it has to support paging. Select2 will call the search function when the user scrolls to the bottom of currently loaded result set allowing for the 'infinite scrolling' of results.
  • Custom markup for results: Chosen only supports rendering text results because that is the only markup supported by option tags. Select2 provides an extension point which can be used to produce any kind of markup to represent results.
  • Ability to add results on the fly: Select2 provides the ability to add results from the search term entered by the user, which allows it to be used for tagging.

Browser Compatibility

  • IE 8+ (7 mostly works except for issue with z-index)
  • Chrome 8+
  • Firefox 3.5+
  • Safari 3+
  • Opera 10.6+

Integrations

Internationalization (i18n)

Select2 supports multiple languages by simply including the right language JS file (select2_locale_it.js, select2_locale_nl.js etc.).

Missing a language? Just copy select2_locale_en.js.template, translate it and make a pull request back to Select2 here on Github.

Bug tracker

Have a bug? Please create an issue here on GitHub!

https://github.com/ivaynberg/select2/issues

Mailing list

Have a question? Ask on our mailing list!

select2@googlegroups.com

https://groups.google.com/d/forum/select2

Copyright 2012 Igor Vaynberg

This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU General Public License version 2 (the "GPL License"). You may choose either license to govern your use of this software only upon the condition that you accept all of the terms of either the Apache License or the GPL License.

You may obtain a copy of the Apache License and the GPL License in the LICENSE file, or at:

http://www.apache.org/licenses/LICENSE-2.0 http://www.gnu.org/licenses/gpl-2.0.html

Unless required by applicable law or agreed to in writing, software distributed under the Apache License or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the Apache License and the GPL License for the specific language governing permissions and limitations under the Apache License and the GPL License.