6
Sieht so aus, als ob das CSS für meinen Typeahead nicht funktioniert. Ich versuche, das rollbare Dropdown-Menü wie auf meinem Code zu reproduzieren https://twitter.github.io/typeahead.js/examplesTypeahead - Scrollable Dropdown-Menü
hier:
JS
CSSvar productList = new Bloodhound({
datumTokenizer: Bloodhound.tokenizers.obj.whitespace('PART_NO'),
queryTokenizer: Bloodhound.tokenizers.whitespace,
//Maybe I need a prefetch
// prefetch: '../data/films/post_1960.json',
remote: {
url: 'getProducts/%QUERY',
wildcard: '%QUERY'
}
});
$('#scrollable-dropdown-menu .typeahead').typeahead(null, {
name: 'PARTS',
limit: 10,
display: 'PART_NO',
source: productList
});
#scrollable-dropdown-menu .tt-dropdown-menu {
max-height: 150px;
overflow-y: auto;
background-color: red;
}
Ich kann nicht sehen, wo die .tt-Dropdown-Menü ist?
Cheers,
Mick