Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattmezza/bulmahead
Simple autocomplete for bulma.io
https://github.com/mattmezza/bulmahead
autocomplete bulma suggestions typeahead
Last synced: 3 months ago
JSON representation
Simple autocomplete for bulma.io
- Host: GitHub
- URL: https://github.com/mattmezza/bulmahead
- Owner: mattmezza
- Created: 2018-04-30T11:11:34.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T03:31:21.000Z (about 2 years ago)
- Last Synced: 2024-10-11T07:09:48.423Z (3 months ago)
- Topics: autocomplete, bulma, suggestions, typeahead
- Language: JavaScript
- Homepage: https://matteo.merola.co/bulmahead
- Size: 682 KB
- Stars: 18
- Watchers: 4
- Forks: 2
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
BulmAhead
======## Install
``
```html
``````js
let st = [{label: 'Alabama', value: 'AL'}, ..., {label: 'Wyoming', value: 'WY'}]
bulmahead('input-id', 'menu-id', v => new Promise((rs,rj) => rs(st.filter(s=>s.startsWith(v))), 200, 2);
```Of course you can customize your function and contact your backend, the important thing is that you return an array of strings (you can see an example of an usage with fetch).
## Develop
- `git clone https://github.com/mattmezza/bulmahead.git`
- `yarn install`
- `yarn start`
- open up your local version of `index.html` in `demo`