diff options
| author | Jacob Thornton <[email protected]> | 2012-01-27 22:27:06 -0800 |
|---|---|---|
| committer | Jacob Thornton <[email protected]> | 2012-01-27 22:27:06 -0800 |
| commit | 7cbb5868259ef95aacbd16812c25ac73ea76ca2d (patch) | |
| tree | b93148cb5befef147b4cc34f084ef1b74181d4f3 /docs/templates/pages/javascript.mustache | |
| parent | e726b231ba0c0c0effb13c9458842d64bda0e58c (diff) | |
| download | bootstrap-7cbb5868259ef95aacbd16812c25ac73ea76ca2d.tar.xz bootstrap-7cbb5868259ef95aacbd16812c25ac73ea76ca2d.zip | |
move the matcher and sorter into the options - encourage people to override them...
Diffstat (limited to 'docs/templates/pages/javascript.mustache')
| -rw-r--r-- | docs/templates/pages/javascript.mustache | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/docs/templates/pages/javascript.mustache b/docs/templates/pages/javascript.mustache index 9113c1776..3c7a3b101 100644 --- a/docs/templates/pages/javascript.mustache +++ b/docs/templates/pages/javascript.mustache @@ -1288,7 +1288,7 @@ $('.myCarousel').carousel({ <tr> <th style="width: 100px;">{{_i}}Name{{/i}}</th> <th style="width: 50px;">{{_i}}type{{/i}}</th> - <th style="width: 50px;">{{_i}}default{{/i}}</th> + <th style="width: 90px;">{{_i}}default{{/i}}</th> <th>{{_i}}description{{/i}}</th> </tr> </thead> @@ -1305,6 +1305,18 @@ $('.myCarousel').carousel({ <td>8</td> <td>{{_i}}The max number of items to display in the dropdown.{{/i}}</td> </tr> + <tr> + <td>{{_i}}matcher{{/i}}</td> + <td>{{_i}}function{{/i}}</td> + <td>case sensitive</td> + <td>{{_i}}The method used to determine if a query matches an item. Accepts a single argument, the <code>item</code> against which to test the query. Access the current query with <code>this.query</code>. Return a boolean <code>true</code> if query is a match.{{/i}}</td> + </tr> + <tr> + <td>{{_i}}sorter{{/i}}</td> + <td>{{_i}}function{{/i}}</td> + <td>no sort</td> + <td>{{_i}}Method used to sort autocomplete results. Accepts a single argument <code>items</code> and has the scope of the typeahead instance. Reference the current query with <code>this.query</code>.{{/i}}</td> + </tr> </tbody> </table> @@ -1313,6 +1325,9 @@ $('.myCarousel').carousel({ <pre class="prettyprint linenums"> <input type="text" data-provide="typeahead"> </pre> + <h3>{{_i}}Methods{{/i}}</h3> + <h4>.typeahead({{_i}}options{{/i}})</h4> + <p>{{_i}}Initializes an input with a typahead.{{/i}}</p> </div> </div> </section>
\ No newline at end of file |
