顿搜
飞过闲红千叶,夕岸在哪
类目归类
<div editable-ui-select="item.groupName"
data-e-form="form"
data-e-name="groupName"
name="groupName"
theme="bootstrap"
data-e-ng-model="item.groupName"
data-e-style="min-width:200px;">
{{item.groupName}}
<editable-ui-select-match>
{{$select.selected}}
<div ng-model="selected"></div>
</editable-ui-select-match>
<editable-ui-select-choices
repeat="gn in getGroupNames($select.search) | filter: $select.search track by $index">
{{gn}}
</editable-ui-select-choices>
</div>$scope.getGroupNames = function (search) {
var newGroupNames = $scope.groupNames.slice();
if (search && newGroupNames.indexOf(search) === -1) {
newGroupNames.unshift(search);
}
return newGroupNames;
};