-
-
Save beyond-code-github/17cb512c4730e478c5fc to your computer and use it in GitHub Desktop.
Knockout bound table after modifications from Part 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table> | |
<thead> | |
<tr data-bind="foreach: headings"> | |
<th data-bind="text: $data"></th> | |
</tr> | |
</thead> | |
<tbody data-bind="foreach: { data: records, as: 'record' }"> | |
<tr data-bind="foreach: { data: $root.headings, as: 'field' }"> | |
<td data-bind="text: record[field]"></td> | |
</tr> | |
</tbody> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment