Skip to main content

Create a web component grid

NB: This example is broken, the web component is not loaded in the sandpack config.

Create a web component grid

import canvasDatagrid from 'canvas-datagrid';
import data from '/data.json';

const app = document.getElementById('app');
const grid = document.createElement('canvas-datagrid');

app.appendChild(grid);