-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtreegrid.html
86 lines (82 loc) · 3.54 KB
/
treegrid.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
<!DOCTYPE html>
<html>
<head>
<title>ARIA Tree Grid Example</title>
<meta charset="utf-8"/>
<link rel="stylesheet" href="./treegrid.css">
<script src="./treegrid.js"></script>
</head>
<body>
<form>
<fieldset>
<legend>Behavior settings</legend>
<div>
<input id="keepColAfterRowNav" type="checkbox" checked>
<label for="keepColAfterRowNav">If switching rows, and a column was focused, stay in the same column (rather than focusing entire new row)</label>
<div>
<input id="resetToRowModeAfterBlur" type="checkbox" checked>
<label for="resetToRowModeAfterBlur">Reset to row focus mode after tabbing out and back in</label>
<div>
<input id="focusFirstColumn" type="checkbox" checked>
<label for="focusFirstColumn">Can focus first column (will switch back to row mode if you move back beyond first column)</label>
</fieldset>
</form>
<hr>
<table id="treegrid" role="treegrid" aria-readonly="true" summary="ARIA treegrid example">
<colgroup>
<col width="20%"></col>
<col width="40%"></col>
<col width="*"></col>
</colgroup>
<thead>
<th>Subject</th>
<th>Summary</th>
<th>Email</th>
</thead>
<tbody>
<tr id="1" role="row" aria-level="1" aria-posinset="1" aria-setsize="1" aria-expanded="true">
<td role="gridcell">Treegrids are broken</td>
<td role="gridcell">How do we fix them?</td>
<td role="gridcell">[email protected]</td>
</tr>
<tr id="1.1" role="row" aria-level="2" aria-posinset="1" aria-setsize="3">
<td role="gridcell">re: Treegrids are broken</td>
<td role="gridcell">I agree with you, but ...</td>
<td role="gridcell">[email protected]</td>
</tr>
<tr id="1.2" role="row" aria-level="2" aria-posinset="2" aria-setsize="3" aria-expanded="true">
<td role="gridcell">re: Treegrids are broken
<td role="gridcell">Not that many people use them
<td role="gridcell">[email protected]</td>
</tr>
<tr id="1.2.1" role="row" aria-level="3" aria-posinset="1" aria-setsize="1">
<td role="gridcell">re: Treegrids are broken</td>
<td role="gridcell">We still need them, plus it's a spec hole</td>
<td role="gridcell">[email protected]</td>
</tr>
<tr id="1.3" role="row" aria-level="2" aria-posinset="3" aria-setsize="3" aria-expanded="true">
<td role="gridcell">re: Treegrids are broken</td>
<td role="gridcell">Can someone suggest something?</td>
<td role="gridcell">[email protected]</td>
</tr>
<tr id="1.3.1" role="row" aria-level="3" aria-posinset="1" aria-setsize="1" aria-expanded="false">
<td role="gridcell">re: Treegrids are broken</td>
<td role="gridcell">They are more like trees than grids, not that many columns usually</td>
<td role="gridcell">[email protected]</td>
</tr>
<tr id="1.3.1.1" role="row" aria-level="4" aria-posinset="1" aria-setsize="2" aria-hidden="true">
<td role="gridcell">re: Treegrids are broken</td>
<td role="gridcell">Cool, let's keep left/right collapse/expand like a tree</td>
<td role="gridcell">[email protected]</td>
</tr>
<tr id="1.3.1.2" role="row" aria-level="4" aria-posinset="2" aria-setsize="2" aria-hidden="true">
<td role="gridcell">re: Treegrids are broken
<td role="gridcell">There be a column navigation command</td>
<td role="gridcell">[email protected]</td>
</tr>
</tbody>
</table>
<hr>
<p><a href="https://github.com/aleventhal/treegrid-example">Jump to documentation and source</a>.
</body>
</html>