Skip to main content

Use a textarea to edit cells instead of an input.

Use a textarea to edit cells instead of an input

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,
  multiLine: true,
});

app.append(gridElement);

grid.style.cellHeight = 80;