Lattice Grid Buy a licence

demo D207

Every type

A column per type, from every group, each sorting on its value not its text

type: 'voltage' · 'bytes' · 'ipv4' · …

Building…
Loading a live grid…

The configuration

<script>
  import { createGrid } from 'https://cdn.jsdelivr.net/npm/@toclocoinc/lattice-grid@1.27.0/lattice-grid.esm.min.js';
  import createLatticeAction from 'https://cdn.jsdelivr.net/npm/@toclocoinc/lattice-grid@1.27.0/modules/svelte.esm.min.js';

  const lattice = createLatticeAction({ createGrid });

  const config = {
    rowKey: 'id',
    toolPanel: { side: 'left', panels: ['columns', 'filters'] },
    // One column per built-in type. Each brings its own parser, comparator,
    // editor, filter and alignment; each sorts on its stored value.
    columns: [
      { field: 'label', title: 'Sample', layout: { pin: 'start', width: 130 } },
      { field: 'address', title: 'ipv4', type: 'ipv4' },
      { field: 'subnet', title: 'cidr', type: 'cidr' },
      { field: 'elapsed', title: 'duration', type: 'duration' },
      { field: 'disk', title: 'bytes', type: 'bytes' },
      { field: 'link', title: 'bitrate', type: 'bitrate' },
      { field: 'status', title: 'hex', type: 'hex' },
      { field: 'temp', title: 'celsius', type: 'celsius' },
      { field: 'voltage', title: 'voltage', type: 'voltage' },
      { field: 'resistance', title: 'resistance', type: 'resistance' },
      { field: 'frequency', title: 'frequency', type: 'frequency' },
      { field: 'pressure', title: 'pressure', type: 'pressure' },
      { field: 'spindle', title: 'rpm', type: 'rpm' },
    ],
    rows,
  };
</script>

<svelte:head>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@toclocoinc/lattice-grid@1.27.0/lattice-grid.min.css">
</svelte:head>

<div use:lattice={config} style="height: 500px"></div>