-
Notifications
You must be signed in to change notification settings - Fork 0
/
sortTableExemple.html
65 lines (61 loc) · 1.18 KB
/
sortTableExemple.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Teste Script sortTable</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="js/sortTable.js"></script>
</head>
<body>
<table id="myTable">
<thead>
<tr>
<td data-type="number">
<a href="#">Número</a>
</td>
<td>
<a href="#">Nome</a>
</td>
<td data-type="date">
<a href="#">Data</a>
</td>
<td data-type="money">
<a href="#">Valor (R$)</a>
</td>
</tr>
</thead>
<tbody>
<tr>
<td>44444</td>
<td>Casa</td>
<td>01/08/2015</td>
<td>R$ 210,50</td>
</tr>
<tr>
<td>11111</td>
<td>Bola</td>
<td>09/01/2015</td>
<td>R$ 572,00</td>
</tr>
<tr>
<td>55555</td>
<td>Tecnologia</td>
<td>02/12/2015</td>
<td>R$ 917,81</td>
</tr>
<tr>
<td>77777</td>
<td>Iago</td>
<td>04/10/2015</td>
<td>R$ 1.100,00</td>
</tr>
</tbody>
</table>
</body>
<script>
jQuery(document).ready(function() {
var table = new ScriptOrderTable();
table.queryTableColumns('#myTable', 'thead td a');
});
</script>
</html>