1.3.0 • Published 6 years ago

typeahead.js-jspm v1.3.0

Weekly downloads
33
License
WTFPL
Repository
github
Last release
6 years ago

typeahead.js-jspm

Make using typeahead.js with jspm a little easier.

The standard typeahead.js npm package doesn't expose Bloodhound, and loads it's jQuery plugin as soon as it's required.

This package is just a small wrapper that allows you to access Bloodhound and load the jQuery plugin explicitly.

Usage

Bloodhound:

import {Bloodhound} from "typeahead.js-jspm";
var engine = new Bloodhound({
  local: ['dog', 'pig', 'moose'],
  queryTokenizer: Bloodhound.tokenizers.whitespace,
  datumTokenizer: Bloodhound.tokenizers.whitespace
});

For jQuery just import jquery, and then call loadjQueryPlugin(). typeahead.js will attach itself to the previously required jQuery.

import $ from "jquery";
import typeahead from "typeahead.js-jspm";
typeahead.loadjQueryPlugin();
1.3.0

6 years ago

1.2.0

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago