JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://jeasyui.com/easyui/jquery.easyui.min.js"></script>
<link rel="stylesheet" href="http://jeasyui.com/easyui/themes/default/easyui.css">
<link rel="stylesheet" href="http://jeasyui.com/easyui/themes/icon.css">
<input id="xcc" style="width:200px">
JavaScript
$('#xcc').combogrid({
//editable:false,
panelWidth:450,
value:'006',
idField:'code',
textField:'name',
data:[
{'code':'001','name':'JACK','addr':'My House'},
{'code':'002','name':'JILL','addr':'Your House'},
{'code':'003','name':'DAVE','addr':'Their House'},
],
columns:[[
{field:'code',title:'Code',width:60},
{field:'name',title:'Name',width:100},
{field:'addr',title:'Address',width:120}
]],
filter: function(q, row){
var opts = $(this).combogrid('options');
return row[opts.textField].indexOf(q) == 0;
}
});