<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ZingGrid: Docs Getting Started</title>
<!--Script Reference[1]-->
<script nonce="undefined" src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
<style>
html,
body {
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
}
zing-grid[loading] {
height: 367px;
}
</style>
</head>
<body>
<!--Grid Component Placement[2]-->
<zing-grid caption="Hello Futurama" sort search pager page-size="3" page-size-options="2,3,6" layout="row" viewport-stop data='[
{
"name": "Philip J. Fry",
"origin": "Earth"
},
{
"name": "Turanga Leela",
"origin": "Earth"
},
{
"name": "Bender Bending Rodriguez",
"origin": "Earth"
},
{
"name": "Amy Wong",
"origin": "Mars"
},
{
"name": "Doctor John Zoidberg",
"origin": "Decapod 10"
},
{
"name": "Lord Nibbler",
"origin": "Earth"
}
]'>
</zing-grid>
<script>
ZingGrid.setLicense(['26ccbfec16b8be9ee98c7d57bee6e498']); // window:load event for Javascript to run after HTML
// because this Javascript is injected into the document head
window.addEventListener('load', () => {
// content after DOM load
});
</script>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ZingGrid: Docs Getting Started</title>
<!--Script Reference[1]-->
<script src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
</head>
<body>
<!--Grid Component Placement[2]-->
<zing-grid caption="Hello Futurama" sort search pager page-size="3" page-size-options="2,3,6" layout="row" viewport-stop data='[
{
"name": "Philip J. Fry",
"origin": "Earth"
},
{
"name": "Turanga Leela",
"origin": "Earth"
},
{
"name": "Bender Bending Rodriguez",
"origin": "Earth"
},
{
"name": "Amy Wong",
"origin": "Mars"
},
{
"name": "Doctor John Zoidberg",
"origin": "Decapod 10"
},
{
"name": "Lord Nibbler",
"origin": "Earth"
}
]'>
</zing-grid>
</body>
</html>
html,
body {
width: 100%;
height: 100%;
position: relative;
overflow: hidden;
}
// window:load event for Javascript to run after HTML
// because this Javascript is injected into the document head
window.addEventListener('load', () => {
// content after DOM load
});