ui-select.html 2.4 KB

1234567891011121314151617181920212223242526272829
  1. <!-- <ui-select ng-model="model[options.key]" ng-required="{{to.required}}" ng-change="to['onChange'](model[options.key], options, this, $event ,model);" ng-disabled={{to.readOnly}} reset-search-input="false" resh="to.to.refreshDelay">
  2. <ui-select-match placeholder="{{to.placeholder}}">
  3. {{$select.selected[to.labelProp || 'name']}}
  4. </ui-select-match>
  5. <ui-select-choices uiDisableChoice="option.disabled" repeat="option[to.valueProp || 'value'] as option in (to.options | filter: {to.labelProp:$select.search}) track by $index" refresh="to.refresh($select.search, options)" refresh-delay="{{to.refreshDelay}}">
  6. <div ng-bind-html="option[to.labelProp || 'name'] | highlight: $select.search"></div>
  7. </ui-select-choices>
  8. </ui-select> -->
  9. <!-- <div ng-if="to.labelProp!='place'">
  10. <ui-select ng-model="model[options.key]" theme="bootstrap" ng-required="{{to.required}}" ng-change="to['onChange'](model[options.key], options, this, $event ,model);" ng-disabled="to.disabled" reset-search-input="false">
  11. <ui-select-match placeholder="{{to.placeholder}}">
  12. {{$select.selected[to.labelProp || 'name']}}
  13. </ui-select-match>
  14. <ui-select-choices uiDisableChoice="option.disabled" repeat="option[to.valueProp || 'value'] as option in to.options | filter:{$:$select.search}" refresh="to.refresh($select.search, options)" refresh-delay="{{to.refreshDelay}}">
  15. <div ng-bind-html="option[to.labelProp || 'name'] | highlight: $select.search"></div>
  16. </ui-select-choices>
  17. </ui-select>
  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">
  21. <ui-select-match placeholder="{{to.placeholder}}">
  22. {{$select.selected[to.labelProp || 'name']}}
  23. </ui-select-match>
  24. <ui-select-choices uiDisableChoice="option.disabled" repeat="option[to.valueProp || 'value'] as option in to.options| filter:{$:$select.search}" refresh="to.refresh($select.search, options,myFilter)" refresh-delay="{{to.refreshDelay}}">
  25. <div ng-bind-html="option[to.labelProp || 'name'] | highlight: $select.search"></div>
  26. </ui-select-choices>
  27. </ui-select>
  28. </div>
  29. <!-- {{myFilter}} -->