|
@@ -16,8 +16,8 @@
|
16
|
16
|
</ui-select-choices>
|
17
|
17
|
</ui-select>
|
18
|
18
|
</div> -->
|
19
|
|
-<div formly-custom-validation="options.validators">
|
20
|
|
- <ui-select ng-model="model[options.key]" theme="bootstrap" ng-required="{{to.required}}" ng-change="to['onChange'](model[options.key], options, this, $event ,model,$select.selected);" ng-disabled={{to.readOnly}} reset-search-input="false">
|
|
19
|
+<div formly-custom-validation="options.validators" style="display:flex;">
|
|
20
|
+ <ui-select style="flex: 1;" ng-model="model[options.key]" theme="bootstrap" ng-required="{{to.required}}" ng-change="to['onChange'](model[options.key], options, this, $event ,model,$select.selected);" ng-disabled={{to.readOnly}} reset-search-input="false">
|
21
|
21
|
<ui-select-match placeholder="{{to.placeholder}}">
|
22
|
22
|
{{$select.selected[to.labelProp || 'name']}}
|
23
|
23
|
</ui-select-match>
|
|
@@ -25,5 +25,8 @@
|
25
|
25
|
<div ng-bind-html="option[to.labelProp || 'name'] | highlight: $select.search" title="{{option['alias']}}"></div>
|
26
|
26
|
</ui-select-choices>
|
27
|
27
|
</ui-select>
|
|
28
|
+ <button ng-if="to.clear" style="padding:2px 4px;" ng-click="model[options.key] = undefined" class="btn btn-default">
|
|
29
|
+ <span class="glyphicon glyphicon-trash"></span>
|
|
30
|
+ </button>
|
28
|
31
|
</div>
|
29
|
32
|
<!-- {{myFilter}} -->
|