Web Demo Mobile Demo Angular Demo Vue Demo React Demo

树形表格下拉框 ComboTreeGrid

Basic ComboTreeGrid

Click the right arrow button to show the TreeGrid.

源代码
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>Basic ComboTreeGrid - jQuery EasyUI Demo</title>
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
</head>
<body>
	<h2>Basic ComboTreeGrid</h2>
	<p>Click the right arrow button to show the TreeGrid.</p>
	<div style="margin:20px 0"></div>
	<div class="easyui-panel" style="width:100%;max-width:400px;padding:30px 60px;">
		<div style="margin-bottom:20px">
			<input class="easyui-combotreegrid" data-options="
					width:'100%',
					panelWidth:500,
					label:'Select Item:',
					labelPosition:'top',
					url:'treegrid_data1.json',
					idField:'id',
					treeField:'name',
					columns:[[
						{field:'name',title:'Name',width:200},
						{field:'size',title:'Size',width:100},
						{field:'date',title:'Date',width:100}
					]]">
		</div>
	</div>
</body>
</html>