HTML代码
<input class="easyui-combobox" name="userId" id="userId"data-options="valueField:'id',textField:'text',panelHeight:'auto',panelMaxHeight:200,panelMinHeight:100" style="width: 160px;height: 29px"/>
JS代码
$('#userId').combobox({
prompt:'输入首关键字自动检索',
required:false,
url:'${path }/portal/designer/tree',
editable:true,
hasDownArrow:true,
filter: function(q, row){
var opts = $(this).combobox('options');
return row[opts.textField].indexOf(q) == 0;
}
});