Skip to main content

Display unicode samples

Unicode works if it is properly encoded using \u escape sequences.

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

app.append(gridElement);

grid.setColumnWidth(1, 5000);