关于控制DataGrid 的最大化 最小话,与关闭按钮

博客主要围绕关闭按钮的实现展开,介绍了相关内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

关闭按钮的实现

 

 

<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>关于控制DataGrid  的最大化 最小话,与关闭按钮</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>Aligning Columns in DataGrid</h2>
	<p>Use align and halign properties to set the alignment of the columns and their header.</p>
	<div style="margin:20px 0;">
	
	</div>
	
	<table id="info"  title="桥梁信息" style="width:700px;height:250px"
	data-options="closable:true,striped:true">
		
	</table>
		<script>
		$('#info').datagrid({       striped:true,
                                    closable:true,
                                    collapsible:true,
                                    minimizable:true,
                                    maximizable:true,
                                   
                                    columns: [[
                                    { field: 'BridgeName', title: '桥梁名称', width: 100, halign: 'center', align: 'left' },
                                    { field: 'BridgeMileStone', title: '中心桩号', width: 100, halign: 'center', align: 'left' },
                                    { field: 'BridgeSerial', title: '桥梁编号', width: 100, halign: 'center', align: 'left' },
                                    { field: 'BridgeLatestRank.BridgeRank', title: '技术状况', width: 65, halign: 'center', align: 'left' },
                                    { field: 'BridgeLength', title: '桥梁长度', width: 75, halign: 'center', align: 'left' },
                                    { field: 'DeckWidth', title: '桥面板宽度', width: 75, halign: 'center', align: 'left' },
                                    { field: 'BuildDate', title: '建桥日期', width: 80, halign: 'center', align: 'left' },
                                    { field: 'MaintainEngineerid', title: '养护工程师', width: 100, halign: 'center', align: 'left' },
                                     
                                    ]]
                                    

                                })
		
		
		
		
		
		
		
		
		
		
		</script>
</body>
</html>

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值