var settings = {
"url": "https://api.myjson.com/bins/183uzk",
"method": "GET",
"headers": {
"content-type": "application/json"
},
}
// in this case, the data is obtained via an api already as a JSON object, and then we pass the result to
// Meliorator to render for us a table respecting embedded images and objects... (basically, do nothing else)
$.ajax(settings).done(function (response) {
initPanels(response);
});
function initPanels(data){
$('#table').Meliorator('table', {
data: data,
tableClass: 'derivedTable'
});
$('#analytics').Meliorator('analytics-panel', {
data: data
});
}