1
0
mirror of synced 2024-11-26 14:56:07 +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
nolamesa 5b0bbfeb7c Fix for random scrolling when using hierarchical data
When using hierarchical data there is a random scroll jump when hovering over select options. The reason is that in the case of hierarchical data the highlightable choices are <ul> and thus their outer height is many pixels (includes the children's height as well). A fix is to make the height calculations by using the the label divs.
2013-03-26 14:49:02 +02:00
component.json modified version identifiers in descriptors for release 3.3.2 2013-03-25 12:14:18 -07:00
LICENSE strip down license header 2013-02-21 09:16:25 -08:00
README.md Update README.md 2013-03-19 09:00:39 -07:00
release.sh switch release to uglifyjs instead of closure 2013-03-25 12:13:45 -07:00
select2_locale_cs.js Czech translation 2013-03-26 01:56:36 +01: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_eu.js Added Basque translation. 2013-03-18 16:02:55 +01:00
select2_locale_fr.js fix typos in the French translation 2013-02-28 15:40:59 +01:00
select2_locale_hr.js Add Croatian translation 2013-03-25 13:34:31 +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_ro.js Added Romanian translation 2013-03-15 13:26:42 +02:00
select2_locale_ru.js Create select2_locale_ru.js 2013-02-21 13:21:49 +04:00
select2_locale_sk.js Create Slovak localisation file 2013-03-14 21:42:54 +01:00
select2_locale_sv.js Swedish translation 2013-03-13 19:06:08 +01:00
select2_locale_tr.js turkish translation added 2013-03-22 12:53:54 +02:00
select2_locale_ua.js Create Ukrainian translation file 2013-03-19 22:58:59 +02: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 Bugfix: Avoid implosion of empty <option>s 2013-03-15 11:15:03 +01:00
select2.jquery.json modified version identifiers in descriptors for release 3.3.2 2013-03-25 12:14:18 -07:00
select2.js Fix for random scrolling when using hierarchical data 2013-03-26 14:49:02 +02: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.

To get started checkout examples and documentation at http://ivaynberg.github.com/select2

What Usecases Does Select2 Support

  • Enhances native selects with search
  • Enhances native selects with a better multi-select interface
  • Loading data from javascript: easily load items via ajax and have them searchable
  • Nested optgroups: native selects only support one level of nested, Select2 does not have this restriction
  • Tagging: ability to add new items on the fly
  • Working with large remote datesets: ability to partially load a dataset based on the search term
  • Paging of large datasets: easy support for loading more pages when the results are scrolled to the end
  • Templating: support for custom rendering of results and selections

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.