mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-13 22:40:50 +08:00
Update typeahead-tests.ts
This commit is contained in:
@@ -71,3 +71,16 @@ $('.example-films .typeahead').typeahead([
|
||||
engine: Hogan
|
||||
}
|
||||
]);
|
||||
|
||||
//Basic substring search
|
||||
//Specifies options along with datasets. In this case the dataset uses a custom substring matcher function as its source
|
||||
$('#the-basics .typeahead').typeahead({
|
||||
hint: true,
|
||||
highlight: true,
|
||||
minLength: 1
|
||||
},
|
||||
{
|
||||
name: 'states',
|
||||
displayKey: 'value',
|
||||
source: substringMatcher(states)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user