json.json
{
"total": 4,
"rows": [
{
"name": "Name",
"value": "Bill Smith",
"group": "ID Settings",
"editor": "text"
},
{
"name": "Address",
"value": "",
"group": "ID Settings",
"editor": "text"
},
{
"name": "SSN",
"value": "123-456-7890",
"group": "ID Settings",
"editor": "text"
},
{
"name": "Email",
"value": "bill@gmail.com",
"group": "Marketing Settings",
"editor": {
"type": "validatebox",
"options": {
"validType": "email"
}
}
}
]
}
detail.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<link rel="stylesheet" type="text/css" href="../../../assets/js/easyui/themes/metro/easyui.css">
<link rel="stylesheet" type="text/css" href="../../../assets/js/easyui/themes/icon.css">
<script type="text/javascript" src="../../../assets/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="../../../assets/js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../../assets/js/easyui/locate/easyui-lang-zh_CN.js"></script>
<script>
$(document).ready(function () {
$("#pg").propertygrid({
url: 'json.json',
showGroup: false,
scrollbarSize: 0,
showHeader: false
})
});
</script>
<body>
<table id="pg" class="easyui-propertygrid" style="width:300px">
</table>
</body>
</html>