From 6935f693b3bce10f9bfe7b7e1f3c2705ff2b6ca2 Mon Sep 17 00:00:00 2001 From: Jacob Thornton Date: Sat, 28 Jan 2012 13:16:05 -0800 Subject: typahead does case insensitive matching with simple sorter + accepts highlighter option --- docs/assets/css/bootstrap.css | 2 +- docs/javascript.html | 12 +++++++++--- docs/templates/pages/javascript.mustache | 12 +++++++++--- 3 files changed, 19 insertions(+), 7 deletions(-) (limited to 'docs') diff --git a/docs/assets/css/bootstrap.css b/docs/assets/css/bootstrap.css index 2fddd8f41..cc58533a0 100644 --- a/docs/assets/css/bootstrap.css +++ b/docs/assets/css/bootstrap.css @@ -1983,7 +1983,7 @@ table .span12 { .navbar-search .search-query :-moz-placeholder { color: #eeeeee; } -.navbar-search .search-query ::-webkit-input-placeholder { +.navbar-search .search-query::-webkit-input-placeholder { color: #eeeeee; } .navbar-search .search-query:hover { diff --git a/docs/javascript.html b/docs/javascript.html index f1ce98658..a35b44dd3 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -1362,7 +1362,7 @@ $('.myCarousel').carousel({ Name type - default + default description @@ -1382,15 +1382,21 @@ $('.myCarousel').carousel({ matcher function - case sensitive + case insensitive 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 + exact match,
case sensitive,
case insensitive 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. + + highlighter + function + highlights all default matches + Method used to highlight autocomplete results. Accepts a single argument item and has the scope of the typeahead instance. Should return html. + diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 46420660a..cba75ac08 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -1297,7 +1297,7 @@ $('.myCarousel').carousel({ {{_i}}Name{{/i}} {{_i}}type{{/i}} - {{_i}}default{{/i}} + {{_i}}default{{/i}} {{_i}}description{{/i}} @@ -1317,15 +1317,21 @@ $('.myCarousel').carousel({ {{_i}}matcher{{/i}} {{_i}}function{{/i}} - case sensitive + {{_i}}case insensitive{{/i}} {{_i}}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.{{/i}} {{_i}}sorter{{/i}} {{_i}}function{{/i}} - no sort + {{_i}}exact match,
case sensitive,
case insensitive{{/i}} {{_i}}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.{{/i}} + + {{_i}}highlighter{{/i}} + {{_i}}function{{/i}} + {{_i}}highlights all default matches{{/i}} + {{_i}}Method used to highlight autocomplete results. Accepts a single argument item and has the scope of the typeahead instance. Should return html.{{/i}} + -- cgit v1.2.3