Skip to content

Commit 330f249

Browse files
author
Jake Harding
committed
Update docs
1 parent 3bae269 commit 330f249

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

doc/jquery_typeahead.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,22 @@ Sets the value of the typeahead. This should be used in place of `jQuery#val`.
7272
$('.typeahead').typeahead('val', myVal);
7373
```
7474

75+
#### jQuery#typeahead('open')
76+
77+
Opens the suggestion menu.
78+
79+
```javascript
80+
$('.typeahead').typeahead('open');
81+
```
82+
83+
#### jQuery#typeahead('close')
84+
85+
Closes the suggestion menu.
86+
87+
```javascript
88+
$('.typeahead').typeahead('close');
89+
```
90+
7591
#### jQuery#typeahead('destroy')
7692

7793
Removes typeahead functionality and reverts the `input` element back to its

test/playground.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,9 @@
304304
'typeahead:open',
305305
'typeahead:close',
306306
'typeahead:change',
307+
'typeahead:render',
307308
'typeahead:select',
308-
'typeahead:autocomplet',
309+
'typeahead:autocomplete',
309310
'typeahead:cursorchange',
310311
].join(' '), logTypeaheadEvent);
311312

0 commit comments

Comments
 (0)