1
0
mirror of synced 2024-11-25 06:16:08 +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
2019-06-25 15:23:14 -07:00
.github Enable the Stale integration 2019-03-12 22:07:42 -04:00
bridge/src initial commit of select2 v5 wip 2019-06-25 15:23:14 -07:00
control initial commit of select2 v5 wip 2019-06-25 15:23:14 -07:00
dev initial commit of select2 v5 wip 2019-06-25 15:23:14 -07:00
dist initial commit of select2 v5 wip 2019-06-25 15:23:14 -07:00
.editorconfig Working on rendering everything 2014-10-21 21:43:56 -04:00
.gitignore initial commit of select2 v5 wip 2019-06-25 15:23:14 -07:00
.jshintignore Overhaul of the AMD integration 2015-03-14 19:05:24 -04:00
.jshintrc Migrate from expect to assert.expect 2016-05-23 23:38:45 -04:00
.travis.yml Use new travis infrastructure 2015-08-10 11:15:40 -04:00
jest.int.config.js initial commit of select2 v5 wip 2019-06-25 15:23:14 -07:00
jest.unit.config.js initial commit of select2 v5 wip 2019-06-25 15:23:14 -07:00
LICENSE.md initial commit of select2 v5 wip 2019-06-25 15:23:14 -07:00
package-lock.json initial commit of select2 v5 wip 2019-06-25 15:23:14 -07:00
package.json initial commit of select2 v5 wip 2019-06-25 15:23:14 -07:00
prettier.config.js initial commit of select2 v5 wip 2019-06-25 15:23:14 -07:00
README.md initial commit of select2 v5 wip 2019-06-25 15:23:14 -07:00
rollup.config.js initial commit of select2 v5 wip 2019-06-25 15:23:14 -07:00
tsconfig.json initial commit of select2 v5 wip 2019-06-25 15:23:14 -07:00
tslint.json initial commit of select2 v5 wip 2019-06-25 15:23:14 -07:00

SELECT 2

This branch represents work-in-progress for the next (5.x) version of Select2.

Major features of this branch:

ADA support

ADA support has been lacking in previous versions of Select2 which made it difficult in incorporate into applications where ADA is a requirement. In order to support ADA Select2 had to be redesigned from scratch.

Written in Preact

This version of Select2 is written in Preact. The reason behind this decision is that majority of bugs came from state updates being inconsistently applied to the DOM, by using Preact we get DOM updates for free.

Native Bridge / Usage Outside Preact

The fact that the core component is written in Preact does not preclude the usage of Select2 in other environments. To this end select25.js is provided and allows usage of the widget via native JavaScript.

TODO

  • So far this branch contains prototype implementations of the Multi-Select and Single-Select widgets. This branch will act as a proof of concept. Once ADA compliance has been validated by the community the rest of the features will follow.

  • The visual design / initial theme is still incomplete

  • Mobile design and testing

Building

npm run dist

Developing

npm run dev and open http://localhost:1234. Sources for dev playground are in ./dev/

Reporting Bugs

Please tag GitHub issues and other threads using the 5.x label

The license is available within the repository in the LICENSE file.