Añadir disabled a autocomplete

This commit is contained in:
Gerard 2018-04-04 15:03:13 +02:00
parent e1a93211d7
commit 520c1eb8f5
3 changed files with 8 additions and 2 deletions

View File

@ -17,6 +17,11 @@
</div>
<label class="mdl-textfield__label" translate>{{::$ctrl.label}}</label>
</div>
<i class="material-icons pointer"
ng-show="!$ctrl.disabled && $ctrl.hasValue && ($ctrl.hasFocus || $ctrl.hasMouseIn)"
ng-click="$ctrl.clear()">
clear
</i>
</div>
<vn-drop-down
vn-id="drop-down"

View File

@ -45,7 +45,7 @@ export default class Autocomplete extends Input {
this.refreshSelection();
if (this.onChange)
this.onChange(value);
this.onChange({value});
}
/**
@ -235,6 +235,7 @@ ngModule.component('vnAutocomplete', {
showField: '@?',
valueField: '@?',
selectFields: '<?',
disabled: '<?',
where: '@?',
order: '@?',
label: '@',

View File

@ -170,7 +170,7 @@
"ticket": "$ctrl.ticket"
},
"menu": {
"description": "Sale Checked",
"description": "Sale checked",
"icon": "assignment"
}
}