forked from jquery/jquery-ui
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdefault.html
More file actions
71 lines (62 loc) · 2.23 KB
/
default.html
File metadata and controls
71 lines (62 loc) · 2.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>default</title>
<meta name="description" content="" />
<meta name="author" content="13" />
<link rel="stylesheet" href="../../themes/base.css" />
<link rel="stylesheet" href="../../lib/sl.css" />
<link rel="stylesheet" href="../../jqui/css/jquery-ui.css" />
<link rel="stylesheet" href="../../themes/default/jquery.ui.override.css" />
<link rel="stylesheet" href="../../themes/default/jquery.ui.grid.css" />
<style type="text/css">
.ui-grid{
top:130px;
left:130px;
}
#grid{
overflow: hidden;
}
</style>
<script src="../../jqui/js/jquery.min.js"></script>
<script src="../../jqui/js/jquery-ui.min.js"></script>
<script src="../../external/underscore-min.js"></script>
<script src="../../external/underscore.string.min.js"></script>
<script src="../../external/modernizr.js"></script>
<!--[if lt IE 10]>
<script src="../../external/PIE.js"></script>
<![endif]-->
<script src="../../core.js"></script>
<script src="../../lib/regx.js"></script>
<script src="../../lib/sl.js"></script>
<script src="../../lib/uihelper.js"></script>
<script src="../../ui/jquery.ya.grid0.js"></script>
<script type="text/javascript">
jQuery(function($){
$('#grid').grid0({
advancedTheme:{
shadow:true,
corner:true
},
width:800,
dataSource : 'data.json',
ajaxParams:{ //附加ajax请求参数,可通过$('#grid').grid0('option','ajaxParams',{'keyword':14})即时更改
'keyword':'13'
},
colModel : [ {header : 'ID', name : 'id', width : 100, align : 'center',renderer:function(v,record,rowIndex){ //record为对应行记录
return v;
}},
{header : '地区', name : 'city', width : 120, align : 'left'},
{header : '地址', name : 'address', align : 'left', width : 'autoExpand'} ]
});
});
</script>
</head>
<body>
<table id="grid"></table>
</body>
</html>