mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-06 16:20:26 +08:00
Update typeahead.d.ts
For some reasons when using typeahead dataset display field with angular, the bindings dont work properly across every field mapped. But displayKey works. According to the api https://github.com/twitter/typeahead.js/blob/master/src/typeahead/dataset.js#L47 both fields are accepted.
This commit is contained in:
Vendored
+7
-1
@@ -181,7 +181,13 @@ declare module Twitter.Typeahead {
|
||||
* Defaults to value.
|
||||
*/
|
||||
display?: string | ((obj: any) => string);
|
||||
|
||||
|
||||
/**
|
||||
* Can be used in place of display above.
|
||||
*
|
||||
*/
|
||||
displayKey?: string | ((obj: any) => string);
|
||||
|
||||
/**
|
||||
* A hash of templates to be used when rendering the dataset.
|
||||
* Note a precompiled template is a function that takes a JavaScript object as its first argument and returns a HTML string.
|
||||
|
||||
Reference in New Issue
Block a user