ajax call json data renderer

This commit is contained in:
Bart van der Braak 2019-04-24 14:57:59 +02:00
parent 33a7f153f0
commit 2cdb340edd
6 changed files with 11441 additions and 126 deletions

View file

@ -1,7 +1,22 @@
$(document).ready( function () {
$('#masterTable').DataTable();
$(document).ready(function() {
$('#example').DataTable({
ajax: "data/krystilia.json",
columns: [
{ data: 'monster'},
{ data: 'taskweight'},
{
data: null,
render: function ( data, type, row ) {
return Math.round( col.taskweight * row.taskweight * 100 )+'%';
}
}
]
});
} );
function filterEntries() {
}