Skip to content

Commit 722b25f

Browse files
author
JoelCDL
committed
Add tables object to toolkit
1 parent c745368 commit 722b25f

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

index.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
<li><a href="src/objects/paragraph-view.hbs">Paragraphs</a></li>
4141
<li><a href="src/objects/rule-view.hbs">Rules</a></li>
4242
<li><a href="src/objects/select-view.hbs">Selects</a></li>
43+
<li><a href="src/objects/table-view.hbs">Tables</a></li>
4344
</ul>
4445
</nav>
4546
</aside>

src/objects/table-view.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{{#extend "base"}}{{#content "body"}}
2+
{{> table }}
3+
{{/content}}{{/extend}}

src/objects/table.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<table>
22
<thead>
33
<tr>
4-
{{#each row1}}
4+
{{#each table.row1}}
55
<th scope="col">{{ cell1.data }}</th>
66
{{/each}}
77
</tr>
88
</thead>
99
<tbody>
10-
{{#each row2}}
10+
{{#each table.row2}}
1111
<tr>
1212
<th scope="row">{{ cell1.data }}</th>
1313
<td>{{ cell2.data }}</td>

0 commit comments

Comments
 (0)