Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stagas/dropdown
a minimal dropdown with UX details
https://github.com/stagas/dropdown
Last synced: 13 days ago
JSON representation
a minimal dropdown with UX details
- Host: GitHub
- URL: https://github.com/stagas/dropdown
- Owner: stagas
- Created: 2013-03-07T07:49:42.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-03-08T11:08:09.000Z (over 11 years ago)
- Last Synced: 2024-04-08T15:44:45.201Z (7 months ago)
- Language: JavaScript
- Homepage: http://stagas.github.com/dropdown
- Size: 223 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dropdown
a minimal dropdown with UX details
## Installing
```sh
$ component-install stagas/dropdown
```## Usage
All the events & methods of [Menu](https://github.com/stagas/menu).
## Events
- `select` when an item is selected
## Example
```js
var input = document.getElementById('input')var dropdown = Dropdown(input)
dropdown
.add('One')
.add('Two')
.add('Three')dropdown.on('select', function (item) {
// do something with item
})
```## License
MIT