Skip to content

Instantly share code, notes, and snippets.

View mboudreau's full-sized avatar

Michel Boudreau mboudreau

View GitHub Profile
@mboudreau
mboudreau / README.markdown
Created June 19, 2012 16:08 — forked from rn0/README.markdown
Bootstrap's Typeahead plugin extended (allowing for AJAX functionality) among other things

This is an extension to Bootstrap Typeahead that adds minimal but powerful extensions.

For example, process typeahead list asynchronously and return objects

  # This example does an AJAX lookup and is in CoffeeScript
  $('.typeahead').typeahead(
    # source can be a function
    source: (typeahead, query) ->
 # this function receives the typeahead object and the query string