1.0.7 • Published 9 years ago

typeahead.js-browserify v1.0.7

Weekly downloads
371
License
ISC
Repository
github
Last release
9 years ago

typeahead.js-browserify

Make using typeahead.js with browserify 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:

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

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

var jQuery = require("jquery");
var typeahead = require("typeahead.js-browserify");
typeahead.loadjQueryPlugin();
1.0.7

9 years ago

1.0.6

10 years ago

1.0.5

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

1.0.4

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago