Skip to content

Commit d7eca04

Browse files
authored
Add displayKey as valid option
as considered here #127
1 parent 47d46b4 commit d7eca04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/jquery_typeahead.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ Datasets can be configured using the following options.
155155

156156
* `limit` – The max number of suggestions to be displayed. Defaults to `5`.
157157

158-
* `display` – For a given suggestion, determines the string representation
158+
* `display` | `displayKey` – For a given suggestion, determines the string representation
159159
of it. This will be used when setting the value of the input control after a
160160
suggestion is selected. Can be either a key string or a function that
161161
transforms a suggestion object into a string. Defaults to stringifying the

0 commit comments

Comments
 (0)