diff options
| author | Matt Morgan <[email protected]> | 2012-04-26 14:09:20 -0400 |
|---|---|---|
| committer | Matt Morgan <[email protected]> | 2012-04-26 14:09:20 -0400 |
| commit | bf9d8fcc070fa826c342282e102fe00e1af76d10 (patch) | |
| tree | 4e436dc3a31c9aa231a156a09953ae08b2a3ddc6 /docs/templates/pages/javascript.mustache | |
| parent | b261f9781bbf31f499cb55c49451dc0c0ad43062 (diff) | |
| download | bootstrap-bf9d8fcc070fa826c342282e102fe00e1af76d10.tar.xz bootstrap-bf9d8fcc070fa826c342282e102fe00e1af76d10.zip | |
Alter typeahead to accept synchronous/asynchronous data source via function/callback
Diffstat (limited to 'docs/templates/pages/javascript.mustache')
| -rw-r--r-- | docs/templates/pages/javascript.mustache | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 1ae3ffa5a..e6f157689 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -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>
\ No newline at end of file + </section> |
