有没有人知道使用Knockout JS模板创建自动完成组合框的最佳方法?
我有以下模板:
<script type="text/html" id="row-template">
<tr>
...
<td>
<select class="list" data-bind="options: SomeViewModelArray,
value: SelectedItem">
</select>
</td>
...
<tr>
</script>
Run Code Online (Sandbox Code Playgroud)
有时这个列表很长,我想让Knockout很好地使用jQuery自动完成或一些直接的JavaScript代码,但收效甚微.
另外,jQuery.Autocomplete需要输入字段.有任何想法吗?