mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-01 09:22:55 +02:00
Alter typeahead to accept synchronous/asynchronous data source via function/callback
This commit is contained in:
6
docs/templates/pages/javascript.mustache
vendored
6
docs/templates/pages/javascript.mustache
vendored
@@ -1385,9 +1385,9 @@ $('.carousel').carousel({
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>{{_i}}source{{/i}}</td>
|
||||
<td>{{_i}}array{{/i}}</td>
|
||||
<td>{{_i}}array, function{{/i}}</td>
|
||||
<td>[ ]</td>
|
||||
<td>{{_i}}The data source to query against.{{/i}}</td>
|
||||
<td>{{_i}}The data source to query against. May be an array of strings or a function. The function is passed two arguments, the <code>query</code> value in the input field and the <code>process</code> callback. The function may be used synchronously by returning the data source directly or asynchronously via the <code>process</code> callback's single argument.{{/i}}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{{_i}}items{{/i}}</td>
|
||||
@@ -1426,4 +1426,4 @@ $('.carousel').carousel({
|
||||
<p>{{_i}}Initializes an input with a typeahead.{{/i}}</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
Reference in New Issue
Block a user