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

24 lines
585 B
HTML
Executable File

<vn-autocomplete
vn-one
url="Workers/search"
search-function="{or: [
{name: $search},
{nickname: {like: '%'+ $search +'%'}},
{code: {like: $search +'%'}}
]}"
label="Worker">
<tpl-item>
<div>
{{name}}
</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>