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-11-06 10:32:02 -08:00
.github Enable the Stale integration 2019-03-12 22:07:42 -04:00
bridge/src add placeholder support for multiselect, closes #5569 2019-07-17 07:53:40 -07:00
control fix incorrect dropdown behavior when multi+openOnFocus and selection is made via mouse 2019-11-06 10:32:02 -08:00
dev add label to one of focus grabbers to facilitate screen reader testing 2019-07-18 12:44:02 -07:00
dist fix incorrect dropdown behavior when multi+openOnFocus and selection is made via mouse 2019-11-06 10:32:02 -08:00
.gitignore add 'data' query helper 2019-06-26 20:17:57 -07:00
.ignore define data format, separate options into multi and single to make them more clear 2019-06-27 16:48:13 -07:00
BANNER.txt added license banner 2019-06-27 08:42:41 -07: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 added license banner 2019-06-27 08:42:41 -07:00
package.json use correct options in createMultiSelect 2019-06-27 17:33:40 -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 added license banner 2019-06-27 08:42:41 -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.