From 4478df768168fe41599508688046612bf5f1e526 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sun, 8 Jan 2012 00:49:38 -0800 Subject: first pass at ultra basic autocomplete --- docs/javascript.html | 95 +++++++++++++++++++++++++++++----------------------- 1 file changed, 53 insertions(+), 42 deletions(-) (limited to 'docs/javascript.html') diff --git a/docs/javascript.html b/docs/javascript.html index dbf8d922a..1ea618a68 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -23,48 +23,6 @@ - - - - - - - - - - - - - - - - - - @@ -163,6 +121,10 @@ bootstrap-carousel.js A plugin for rotating through elements. A merry-go-round. + + bootstrap-typeahead.js + A basic, easily extended plugin for quickly creating elegant typeaheads. +

Is javascript necessary?

@@ -1151,6 +1113,54 @@ $('.myCarousel').carousel({ + + +
+ +
+
+

A basic, easily extended plugin for quickly creating elegant typeaheads.

+ Download +
+
+

Using bootstrap-typeahead.js

+
$('.typeahead').typeahead()
+ +

Options

+ + + + + + + + + + + + + + + + + +
Nametypedefaultdescription
itemsnumber8The max number of items to display in the dropdown.
+ +

Markup

+

Add data attributes to register an element with typeahead functionality.

+
+<input type="text" data-provide="typeahead" />
+
+

Demo

+ +
+
+
+ +