Repository navigation
Expand file tree
/
Copy pathtable.html
More file actions
95 lines (70 loc) · 2.33 KB
/
Copy pathtable.html
File metadata and controls
95 lines (70 loc) · 2.33 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>PobTable</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<script src="jquery-2.2.3.min.js"></script>
<script src="../pobTable.js"></script>
<style>
.tableContainer{
border: 1px Solid #4D4D4D;
background-color: #BFBFBF ; /* Colore di sfondo griglia*/
}
.tableHeader tr td{ font-weight: bold; }
.tableBody{ font-size: 12px}
</style>
<script>
$(document).ready(function () {
myTable = new pobTable();
myTable.cssClassContainer='tableContainer';
myTable.cssClassHeader='tableHeader';
myTable.cssClassBody='tableBody';
myTable.height= 100;
myTable.width=945;
//Make columns
myTable.addCol('Name', 300, 'colName');
myTable.addCol('Last Name', 400, 'colLastName');
myTable.addCol('Telephone', 200, 'colTel');
//Insert some rows
myTable.addCell('Fabio', '');
myTable.addCell('Di Matteo', '');
myTable.addCell('0648357', '');
myTable.onClickRow='alert(\'Chester\')';
myTable.rowStyle='cursor:pointer;';
myTable.addCell('Chester', '');
myTable.cellStyle='background-color:red;';
myTable.addCell('Di Matteo', '');
myTable.addCell('0873245', '');
myTable.addCell('Primo', '');
myTable.addCell('Di Matteo', '');
myTable.addCell('0873245', '');
myTable.addCell('Fabio', '');
myTable.addCell('Di Matteo', '');
myTable.addCell('0648357', '');
myTable.onClickRow='alert(\'Chester\')';
myTable.addCell('Chester', '');
myTable.addCell('Di Matteo', '');
myTable.addCell('0873245', '');
myTable.addCell('Primo', '');
myTable.addCell('Di Matteo', '');
myTable.addCell('0873245', '');
myTable.addCell('Fabio', '');
myTable.addCell('Di Matteo', '');
myTable.addCell('0648357', '');
myTable.onClickRow='alert(\'Chester\')';
myTable.addCell('Chester', '');
myTable.addCell('Di Matteo', '');
myTable.addCell('0873245', '');
myTable.addCell('Primo', '');
myTable.addCell('Di Matteo', '');
myTable.addCell('0873245', '');
//Realize table
myTable.attach('body');
});
</script>
</head>
<body>
<h3>Test pobTable</h3>
</body>
</html>