Añadir disabled a autocomplete
This commit is contained in:
parent
e1a93211d7
commit
520c1eb8f5
|
@ -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"
|
||||
|
|
|
@ -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: '@',
|
||||
|
|
|
@ -170,7 +170,7 @@
|
|||
"ticket": "$ctrl.ticket"
|
||||
},
|
||||
"menu": {
|
||||
"description": "Sale Checked",
|
||||
"description": "Sale checked",
|
||||
"icon": "assignment"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue