Skip to main content

Allow new rows

Allow the input of new rows at the bottom of the grid.

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

const app = document.getElementById('app');
const gridElement = document.createElement('div');
const grid = canvasDatagrid({
  parentNode: gridElement,
  data,
  showNewRow: true,
});

app.append(gridElement);