4

私は ui-select(version - 0.11.2) を使用していHTMLます。コードは次のとおりです。

<ui-select ng-model="staff.selected" ng-disabled="disabled" reset-search-input="false" multiple>
    <ui-select-match placeholder="Staff">{{$item.name}}</ui-select-match>
    <ui-select-choices repeat="staff in staffs" refresh="refreshStaff($select.search)" refresh-delay="0">
        <div ng-bind-html="name | highlight: $select.search"></div>
    </ui-select-choices>
</ui-select>

ここではmultiple、複数のオプションを選択するために使用しています。タイプでクエリを検索した後、表示されたままです。どうしてそれを見せてはいけないのですか?

JSコード

$scope.refreshStaff = function(name) {
  Staffs.query($scope.queryCriteria).then(function(response) {
    return response.data;
  });
}
4

1 に答える 1

1
<ui-select ... reset-search-input="true">
于 2015-06-22T13:03:27.820 に答える