This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
Selecting an item not in the list #1409
Open
Description
how can i select (or add) an item that is not in the list? I.e. when a user starts typing and filters to the point where there isnt a match, an option to create a new entry appears.
<ui-select ng-model="order.email" theme="bootstrap">
<ui-select-match placeholder="Search by email...">{{order.email}}</ui-select-match>
<ui-select-choices repeat="item in customers | filter: $select.search">
<div ng-bind-html="item.email | highlight: $select.search"></div>
</ui-select-choices>
</ui-select>