/ember-cli-twitter-typeahead

An ember cli typeahead component based on Twitter's jquery typeahead

Primary LanguageJavaScript

ember-cli-twitter-typeahead

Build Status

This is an ember wrapper for Twitter's JQuery Typeahead. It's packaged as a simple ember cli add on. All you have to do is use npm install --save ember-cli-twitter-typeahead and you'll be able to use the typeahead helper in your ember-cli app.

Prerequisites

You will need the following things properly installed on your computer.

Usage

To use this in your app, simply use:

{{twitter-typeahead
content=arrayOfDataForTypeahead
filterContent=filterContentFn
displayKey="propertyToDisplay"
valueToken="propertyForValue"
footerTemplate=handlebarsFooterTemplate
emptyTemplate=handlebarsEmptyTemplate
on-select-without-match="ActionToRunWhenEnterIsHitWithoutAMatch"
}}

Installation

  • npm install --save ember-cli-twitter-typeahead

Running Tests

To develop and test locally, simply clone the repository and run:

  • ember test
  • ember test --server

Further Reading / Useful Links