diff --git a/Makefile b/Makefile index 7c95b19001..84252f19f8 100644 --- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ build: @cp js/tests/vendor/jquery.js docs/assets/js/ @echo " ${CHECK}" @printf "Compiling and minifying JavaScript..." - @cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-typeahead.js js/bootstrap-affix.js > docs/assets/js/bootstrap.js + @cat js/bootstrap-transition.js js/bootstrap-alert.js js/bootstrap-button.js js/bootstrap-carousel.js js/bootstrap-collapse.js js/bootstrap-dropdown.js js/bootstrap-modal.js js/bootstrap-tooltip.js js/bootstrap-popover.js js/bootstrap-scrollspy.js js/bootstrap-tab.js js/bootstrap-affix.js > docs/assets/js/bootstrap.js @uglifyjs -nc docs/assets/js/bootstrap.js > docs/assets/js/bootstrap.min.tmp.js @echo "/**\n* Bootstrap.js v3.0.0 by @fat & @mdo\n* Copyright 2012 Twitter, Inc.\n* http://www.apache.org/licenses/LICENSE-2.0.txt\n*/" > docs/assets/js/copyright.js @cat docs/assets/js/copyright.js docs/assets/js/bootstrap.min.tmp.js > docs/assets/js/bootstrap.min.js diff --git a/docs/_includes/docs-nav.html b/docs/_includes/docs-nav.html index 2c001a3f4c..a9afa52c79 100644 --- a/docs/_includes/docs-nav.html +++ b/docs/_includes/docs-nav.html @@ -32,7 +32,6 @@
A basic, easily extended plugin for quickly creating elegant typeaheads with any form text input.
-You'll want to set autocomplete="off"
to prevent default browser menus from appearing over the Bootstrap typeahead dropdown.
Add data attributes to register an element with typeahead functionality as shown in the example above.
- -Call the typeahead manually with:
-{% highlight js %} -$('.typeahead').typeahead() -{% endhighlight %} - -Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-
, as in data-source=""
.
Name | -type | -default | -description | -
---|---|---|---|
source | -array, function | -[ ] | -The data source to query against. May be an array of strings or a function. The function is passed two arguments, the query value in the input field and the process callback. The function may be used synchronously by returning the data source directly or asynchronously via the process callback's single argument. |
-
items | -number | -8 | -The max number of items to display in the dropdown. | -
minLength | -number | -1 | -The minimum character length needed before triggering autocomplete suggestions | -
matcher | -function | -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 | -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 . |
-
updater | -function | -returns selected item | -The method used to return selected item. Accepts a single argument, the item and has the scope of the typeahead instance. |
-
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. |
-
Initializes an input with a typeahead.
-