-
Notifications
You must be signed in to change notification settings - Fork 3
/
table.html
49 lines (36 loc) · 1.93 KB
/
table.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
<html>
<head>
<meta name = "viewport" content = "initial-scale = 1.0, user-scalable = no" />
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body>
<script type="text/javascript" src="NKit.js"></script>
<script>
var navController = new NKNavigationController();
navController.setTitle("Table View");
navController.setTintColor(0, 0, 0);
var tableView = new NKTableView();
tableView.init(0, 0, 320, 367, 'plain');
tableView.insertRecord("Alpha", "A Lovely Subtitle", "", "0", "", "blahBlah()");
tableView.insertRecord("Bravo", "Another Lovely Subtitle", "", "0", "", "blahBlah()");
tableView.insertRecord("Charlie", "Another Lovely Subtitle", "", "0", "", "blahBlah()");
tableView.insertRecord("Delta", "Another Lovely Subtitle", "", "0", "", "blahBlah()");
tableView.insertRecord("Echo", "Another Lovely Subtitle", "", "0", "", "blahBlah()");
tableView.insertRecord("Foxtrot", "Another Lovely Subtitle", "", "0", "", "blahBlah()");
tableView.insertRecord("Golf", "Another Lovely Subtitle", "", "0", "", "blahBlah()");
tableView.insertRecord("Hotel", "Another Lovely Subtitle", "", "0", "", "blahBlah()");
tableView.insertRecord("India", "Another Lovely Subtitle", "", "0", "", "blahBlah()");
tableView.insertRecord("Juliet", "Another Lovely Subtitle", "", "0", "", "blahBlah()");
tableView.insertRecord("Kilo", "Another Lovely Subtitle", "", "0", "", "blahBlah()");
tableView.insertRecord("Mike", "Another Lovely Subtitle", "", "0", "", "blahBlah()");
tableView.insertRecord("November", "Another Lovely Subtitle", "", "0", "", "blahBlah()");
tableView.insertRecord("Oscar", "Another Lovely Subtitle", "", "0", "", "blahBlah()");
tableView.insertRecord("Papa", "Another Lovely Subtitle", "", "0", "", "blahBlah()");
tableView.insertRecord("Quebec", "Another Lovely Subtitle", "", "0", "", "blahBlah()");
tableView.show();
function blahBlah() {
NKLog("Cell Selected");
}
</script>
</body>
</html>