Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`