<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ZingGrid Demo</title>
<!-- link for jquery -->
<script nonce="undefined" src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<!-- import zinggrid file -->
<script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
<style>
body {
background: #FFF;
}
</style>
</head>
<body>
<zing-grid id="myGrid" caption="Hello Doggos"></zing-grid>
<script>
ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']);
$(document).ready(function() {
const $gridRef = $('#myGrid');
let datastore = [{
"breed": "Dachshund",
"name": "Sousage"
},
{
"breed": "Corgi",
"name": "Plop"
},
{
"breed": "Pomeranian",
"name": "Floof"
}
];
if ($gridRef) $gridRef.attr('data', JSON.stringify(datastore));
});
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ZingGrid Demo</title>
<!-- link for jquery -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<!-- import zinggrid file -->
<script src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
</head>
<body>
<zing-grid id="myGrid" caption="Hello Doggos"></zing-grid>
</body>
</html>
body {
background: #FFF;
}
$(document).ready(function() {
const $gridRef = $('#myGrid');
let datastore = [{
"breed": "Dachshund",
"name": "Sousage"
},
{
"breed": "Corgi",
"name": "Plop"
},
{
"breed": "Pomeranian",
"name": "Floof"
}
];
if ($gridRef) $gridRef.attr('data', JSON.stringify(datastore));
});