0
ここに私のコードです。角度のあるUI選択を使用しました。それは素晴らしい仕事です。しかし今、ドロップダウンが1回だけ選択されるように要件が変更されました。制限属性を使用しましたが、機能しません。単一選択によるユーザ選択(制限属性が機能していません)
<span id="oCountriesSpan" ng-class="{'has-error': noCountriesSelected()}">
<ui-select multiple limit="1" ng-model="countryModel.selectedCountries" ng-disabled="isReadOnly" theme="bootstrap">
<ui-select-match placeholder="Select ..." allow-clear="true">{{$item.name}}
</ui-select-match>
<ui-select-choices repeat="country.id as country in countryCodes | filter:$select.search">
{{ country.name }}
</ui-select-choices>
</ui-select>
</span>
他の方法にはあり選択を1つに制限しますか? – tv3free