Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Latest commit

 

History

History
29 lines (16 loc) · 1.01 KB

readme.md

File metadata and controls

29 lines (16 loc) · 1.01 KB

Typeahead Directive

typeahead is a AngularJS version of Twitter Bootstrap typeahead plugin

this directive can be used to quickly creating elegant typeheads with any form text input.

Usage

add class typeahead to your input to provide typeahead functionality.

Options

Options can be passed via attributes in the input tag

items : number of items display in the dropdown min-length : minimum character length needed before triggering suggestions

You can also modify some methods if default ones don't fit with your usage

scope.matcher : method which determines if the query matches an item. Return an array of items that match. scope.updater : method which return the selected item. If you want to do more. (keep from the original bootstrap jquery component because it was a simple solution to let developers extend the component and keep it simple)

Features

an AngularJS filter have been add to highlight the results.

TODO

Order the results