JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://www.jeasyui.com/easyui/themes/default/easyui.css">
<script src="http://www.jeasyui.com/easyui/jquery.easyui.min.js"></script>
<table id="pg" style="width:300px" data-options="
showGroup:true,
scrollbarSize:0
">
</table>
JavaScript
var data = {"total":7,"rows":[
{"name":"Name","value":"Bill Smith","group":"ID Settings","editor":"text"},
{"name":"Address","value":"","group":"ID Settings","editor":"text"},
{"name":"Age","value":"40","group":"ID Settings","editor":"numberbox"},
{"name":"Birthday","value":"01/02/2012","group":"ID Settings","editor":"datebox"},
{"name":"SSN","value":"123-456-7890","group":"ID Settings","editor":{
"type":"combobox",
"options":{
"valueField":"text",
"textField":"text",
"data":[
{"id":1,"text":"c1"},
{"id":2,"text":"c2"},
{"id":3,"text":"c3"}
]
}
}},
{"name":"Email","value":"bill@gmail.com","group":"Marketing Settings","editor":{
"type":"validatebox",
"options":{
"validType":"email"
}
}},
{"name":"FrequentBuyer","value":"false","group":"Marketing Settings","editor":{
"type":"checkbox",
"options":{
"on":true,
"off":false
}
}}
]}
$('#pg').propertygrid({
data:data,
onAfterEdit:function(index,row,changes){
alert(changes)
}
});