Skip to content

Instantly share code, notes, and snippets.

View lbatteau's full-sized avatar

Lukas Batteau lbatteau

  • Deepdesk
  • 21:23 (UTC +01:00)
View GitHub Profile
@lbatteau
lbatteau / README.markdown
Created October 30, 2012 12:38 — forked from gudbergur/README.markdown
Bootstrap's Typeahead plugin extended (allowing for AJAX functionality) among other things

This is a fork of 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