From 7cbb5868259ef95aacbd16812c25ac73ea76ca2d Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Fri, 27 Jan 2012 22:27:06 -0800 Subject: move the matcher and sorter into the options - encourage people to override them... --- docs/javascript.html | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'docs/javascript.html') diff --git a/docs/javascript.html b/docs/javascript.html index d48924115..53130bd16 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -1353,7 +1353,7 @@ $('.myCarousel').carousel({ Name type - default + default description @@ -1370,6 +1370,18 @@ $('.myCarousel').carousel({ 8 The max number of items to display in the dropdown. + + matcher + function + case sensitive + The method used to determine if a query matches an item. Accepts a single argument, the item against which to test the query. Access the current query with this.query. Return a boolean true if query is a match. + + + sorter + function + no sort + Method used to sort autocomplete results. Accepts a single argument items and has the scope of the typeahead instance. Reference the current query with this.query. + @@ -1378,6 +1390,9 @@ $('.myCarousel').carousel({
 <input type="text" data-provide="typeahead">
 
+

Methods

+

.typeahead(options)

+

Initializes an input with a typahead.

-- cgit v1.2.3