Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jurca/szn-options
Accessible HTML selectbox options list with customizable UI. Based on web components and easy to integrate with various frameworks like React or Angular.
https://github.com/jurca/szn-options
Last synced: 6 days ago
JSON representation
Accessible HTML selectbox options list with customizable UI. Based on web components and easy to integrate with various frameworks like React or Angular.
- Host: GitHub
- URL: https://github.com/jurca/szn-options
- Owner: jurca
- License: mit
- Created: 2017-10-15T05:56:55.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-16T08:38:35.000Z (over 6 years ago)
- Last Synced: 2024-04-14T10:08:55.383Z (7 months ago)
- Language: JavaScript
- Size: 173 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# szn-options
Accessible HTML selectbox options list with customizable UI. Based on web
components and easy to integrate with various frameworks like React or Angular.This component is not meant to be used stand-alone, it is a helper component
meant to be used in other `szn-` components.---
This project has been re-integrated into the
[szn-select](https://github.com/jurca/szn-select) element. This repository is
no longer up-to-date.---
## Usage
Markup (usually created dynamically via JS):
```html
…
…
…
…
…```
JavaScript to wire things up:
```javascript
var select = document.getElementsByTagName('select')
var sznOptions = document.getElementsByTagName('szn-options')
sznOptions.setOptions(select)
```