<html>
<link href="https://unpkg.com/gridjs/dist/theme/mermaid.min.css" rel="stylesheet" />
<div id="result"></div>
<script src="https://unpkg.com/gridjs/dist/gridjs.development.js"></script>
<script>
new gridjs.Grid({
pagination: {
limit: 2
},
columns: ['ID', 'Name', 'Email'],
data: [
[1, 'John', 'john@example.com'],
[2, 'Mark', 'mark@gmail.com'],
[3, 'Eoin', 'eoin@gmail.com']
]
}).render(document.getElementById('result'));
</script>
</html>