Añadir disabled a autocomplete
This commit is contained in:
parent
e1a93211d7
commit
520c1eb8f5
|
@ -17,6 +17,11 @@
|
||||||
</div>
|
</div>
|
||||||
<label class="mdl-textfield__label" translate>{{::$ctrl.label}}</label>
|
<label class="mdl-textfield__label" translate>{{::$ctrl.label}}</label>
|
||||||
</div>
|
</div>
|
||||||
|
<i class="material-icons pointer"
|
||||||
|
ng-show="!$ctrl.disabled && $ctrl.hasValue && ($ctrl.hasFocus || $ctrl.hasMouseIn)"
|
||||||
|
ng-click="$ctrl.clear()">
|
||||||
|
clear
|
||||||
|
</i>
|
||||||
</div>
|
</div>
|
||||||
<vn-drop-down
|
<vn-drop-down
|
||||||
vn-id="drop-down"
|
vn-id="drop-down"
|
||||||
|
|
|
@ -45,7 +45,7 @@ export default class Autocomplete extends Input {
|
||||||
this.refreshSelection();
|
this.refreshSelection();
|
||||||
|
|
||||||
if (this.onChange)
|
if (this.onChange)
|
||||||
this.onChange(value);
|
this.onChange({value});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -235,6 +235,7 @@ ngModule.component('vnAutocomplete', {
|
||||||
showField: '@?',
|
showField: '@?',
|
||||||
valueField: '@?',
|
valueField: '@?',
|
||||||
selectFields: '<?',
|
selectFields: '<?',
|
||||||
|
disabled: '<?',
|
||||||
where: '@?',
|
where: '@?',
|
||||||
order: '@?',
|
order: '@?',
|
||||||
label: '@',
|
label: '@',
|
||||||
|
|
|
@ -170,7 +170,7 @@
|
||||||
"ticket": "$ctrl.ticket"
|
"ticket": "$ctrl.ticket"
|
||||||
},
|
},
|
||||||
"menu": {
|
"menu": {
|
||||||
"description": "Sale Checked",
|
"description": "Sale checked",
|
||||||
"icon": "assignment"
|
"icon": "assignment"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue