Update typeahead-tests.ts

This commit is contained in:
maanasa
2014-03-26 17:04:20 +05:30
parent a00413743e
commit 64bd6c8132

View File

@@ -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)
});