forked from dobtco/jquery-resizable-columns
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
134 lines (122 loc) · 4.33 KB
/
index.html
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!doctype html>
<head>
<title>jQuery Resizable Columns</title>
<meta name="description" content="">
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" href="dist/jquery.resizableColumns.css">
<link rel="stylesheet" href="demo/demo.css">
</head>
<body>
<a href="https://github.com/thetbw/jquery-resizable-columns">
<img class="ribbon" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub">
</a>
<div class="container">
<div class="page-header">
<h1>
jQuery Resizable Columns
<small>Demo</small>
</h1>
</div>
<blockquote><em>Grab the column borders and drag 'em! <strong>Bonus: refresh the page.</strong></em></blockquote>
<div style="width: 100%;overflow: scroll">
<table class="table table-bordered" data-resizable-columns-id="demo-table-v2" style="table-layout: auto">
<thead>
<tr>
<th data-resizable-column-id="#">#</th>
<th data-resizable-column-id="first_name">First Name</th>
<th data-resizable-column-id="last_name">Last Name</th>
<th data-resizable-column-id="age">age</th>
<th data-resizable-column-id="address">Address</th>
<th data-resizable-column-id="email">Email</th>
<th data-resizable-column-id="phone">Phone</th>
<th data-resizable-column-id="gender">Gender</th>
<th data-resizable-column-id="twitter">twitter</th>
<th data-resizable-column-id="website">website</th>
<th data-resizable-column-id="other">other</th>
<th data-resizable-column-id="remark">remark</th>
<th data-resizable-column-id="username" id="username-column">Username</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>thetbw</td>
<td>thetbw</td>
<td>20</td>
<td>china</td>
<td>thetbw@thetbw.xyz</td>
<td>110</td>
<td>1</td>
<td>thetbw_xyz</td>
<td>thetbw.xyz</td>
<td>this is a test value</td>
<td>no any</td>
<td>@mdo</td>
</tr>
<tr>
<td>2</td>
<td>Jacob</td>
<td>Thornton</td>
<td>20</td>
<td>china yhahhs asa as a sa</td>
<td>thetbw@thetbw.xyz</td>
<td>110</td>
<td>1</td>
<td>thetbw_xyz</td>
<td>thetbw.xyz</td>
<td>this is a test value</td>
<td>no any</td>
<td>@fat</td>
</tr>
</tbody>
</table>
</div>
<pre>
<script src="/path/to/jquery.js"></script>
<script src="/path/to/store.js"></script>
<script src="/path/to/jquery.resizableColumns.js"></script>
<table class="table table-bordered" data-resizable-columns-id="demo-table">
<thead>
<tr>
<th data-resizable-column-id="#">#</th>
<th data-resizable-column-id="first_name">First Name</th>
<th data-resizable-column-id="last_name">Last Name</th>
<th data-resizable-column-id="username" data-noresize>Username</th>
</tr>
</thead>
<tbody>
...
</tbody>
</table>
<script>
$(function(){
$("table").resizableColumns({
store: window.store
});
});
</script></pre>
</div>
<!-- jQuery -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<!-- Optional localStorage dependancy, for persistent column width storage -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/store.js/1.3.14/store.min.js"></script>
<!-- Plugin -->
<script src="dist/jquery.resizableColumns.min.js"></script>
<script>
$(function(){
$("table").resizableColumns({
store: window.store
});
});
</script>
<!-- Analytics -->
<script type="text/javascript">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-39205841-4', 'dobtco.github.io');
ga('send', 'pageview');
</script>
</body>
</html>