jQuery EasyUI 188bet网格 - 创立特点网格

特点网格(property grid)带有一个内置的 expand(打开)/collapse(兼并) 按钮,能够简略地为行分组。您能够简略地创立一个可修改特点的分层(hierarchical)列表。

设置 HTML

	<table id="tt" class="easyui-propertygrid" style="width:300px"
            url="propertygrid_data.json"
            showGroup="true" scrollbarSize="0"
    ></table>

预备 json 188bet

	[
		{"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":"text"},
		{"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
			}
		}}
	]

正如您所看到的,特点网格(property grid)的创立不需要任何的 javascript 代码。您能够简略地承继扩展 editor 类型。

下载 jQuery EasyUI 实例

jeasyui-datagrid-datagrid20.zip