salix/front/core/components/worker-autocomplete/index.html

22 lines
569 B
HTML
Raw Normal View History

<vn-autocomplete
vn-one
url="Workers/activeWithInheritedRole"
ng-model="$ctrl.workerFk"
search-function="{firstName: $search}"
value-field="id"
label="Worker">
<tpl-item>
<div>
{{firstName}} {{lastName}}
</div>
<div class="text-caption text-secondary">
{{nickname}}, {{code}}
</div>
</vn-autocomplete>
<vn-drop-down
vn-id="drop-down"
on-select="$ctrl.onDropDownSelect(item)"
on-data-ready="$ctrl.onDataReady()"
on-close-start="$ctrl.onDropDownClose()">
</vn-drop-down>