Mein HTMLAngularJS: scrollbaren typeahead Eingabefeld
<div class="form-group">
<label class='control-label col-md-4' for='id_paymentCurrency'>{{'PAYMENT_CURRENCY' | translate}}</label>
<div class='col-md-4'>
<div id="scrollable-dropdown-menu">
<input type="text" class="form-control" data-trim-value="false" ng-trim="false" id ='id_paymentCurrency' ng-model="vm.data.paymentCurrency" typeahead-append-to-body="true" required
typeahead-editable="false"
uib-typeahead="currency.code for currency in vm.getCurrencies($viewValue)"ng-disabled="disabled" />
</div>
</div>
</div>
Meine CSS
#scrollable-dropdown-menu .tt-menu {
max-height: 150px;
overflow-y: auto;
}
I Winkel 1.x und typeahead bin mit, die mit Winkel bootsrap kommt, kann ich nicht machen Bildlaufleiste angezeigt.
http://fiddle.jshell.net/H7LA4/46/
Yup, aber ich würde es nicht auf alle Dropdown-Menüs auf, so sollte es sein, wie # scrollbaren-Drop-Down-Menü .typeahead { – Damiano
@Damiano ja In der Tat sollte die ID des Elements hinzugefügt werden – Akis