Noah | Garfinkle |
Person | Monthly pay |
---|---|
Jan Molby | £12,000 |
Steve Nicol | £8,500 |
Steve McMahon | £9,200 |
John Barnes | £15,300 |
TOTAL | £45,000 |
Stockholm
Berlin
Perhaps we already have our data in JSON format. We can skip the initial record normalization by setting up an empty table for rendering and directly passing our data into dynatable:
HTML table to render records:
<table id="my-final-table">
<thead>
<th>Band</th>
<th>Song</th>
</thead>
<tbody>
</tbody>
</table>
This is a pre#json-records
element:
[ { "band": "Weezer", "song": "El Scorcho" }, { "band": "Chevelle", "song": "Family System" } ]
var $records = $('#json-records'),
myRecords = JSON.parse($records.text());
$('#my-final-table').dynatable({
dataset: {
records: myRecords
}
});
Band | Song |
---|
Band | Song |
---|