Skip to main content

Selection Mode Row

Prevents the selection of individual cells forcing the row to become selected.

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,
  selectionMode: 'row',
});

app.append(gridElement);