Skip to main content

Multiple filters

Create filters on more than one column at a time.

import canvasDatagrid from 'canvas-datagrid';
import createData from '/create-data';

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

app.append(gridElement);

grid.data = createData();
grid.setFilter('quick', '/the/i');
grid.setFilter('brown', 'quick');