https://github.com/xi/select
Better select widgets in vanilla javascript.
https://github.com/xi/select
select2
Last synced: 4 months ago
JSON representation
Better select widgets in vanilla javascript.
- Host: GitHub
- URL: https://github.com/xi/select
- Owner: xi
- License: mit
- Created: 2021-03-25T16:22:31.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-09-05T05:40:45.000Z (almost 2 years ago)
- Last Synced: 2024-12-03T17:34:32.520Z (6 months ago)
- Topics: select2
- Language: JavaScript
- Homepage: https://xi.github.io/select/demo/
- Size: 98.6 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Select
Better select widgets in vanilla javascript.
The code is intentionally very simple and close to browser defaults.
## Usage
```html
new Select(element, {
id: 'myselect',
inputClass: 'my-input-class',
valueClass: 'my-value-class',
});```
# Mobile support
This library does work on mobile. However, select usability on mobile is
usually far superior to that on desktop. Therefore it is recommended to only
use this on desktop.## Roadmap
- allowClear
## Inspiration
- [select2](https://select2.org/)
- [downshift](https://www.downshift-js.com/)
- [react-select](https://react-select.com)
- [WAI-ARIA combobox](https://www.w3.org/WAI/ARIA/apg/patterns/combobox/)
- [``](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist)