Skip to content

Commit 37a8fa0

Browse files
committed
add example with headers on first column
1 parent 76d27f8 commit 37a8fa0

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

examples/index.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,32 @@ <h3>Simple table with colspan</h3>
112112
</tbody>
113113
</table>
114114

115+
<h3>Simple table, headers on first column</h3>
116+
<table wt-responsive-table>
117+
<tbody ng-repeat="item in ctrl.projects">
118+
<tr>
119+
<th>Name</th>
120+
<td>{{item.name}}</td>
121+
</tr>
122+
<tr>
123+
<th>Version</th>
124+
<td>{{item.version}}</td>
125+
</tr>
126+
<tr>
127+
<th>Language</th>
128+
<td>{{item.language}}</td>
129+
</tr>
130+
<tr>
131+
<th>Maintainer</th>
132+
<td>{{item.maintainer}}</td>
133+
</tr>
134+
<tr>
135+
<th>Stars</th>
136+
<td>{{item.stars}}</td>
137+
</tr>
138+
</tbody>
139+
</table>
140+
115141
<h2>With Bootstrap</h2>
116142

117143
<h3>Static table</h3>

0 commit comments

Comments
 (0)