Migrating from Tabulator

Tabulator is a feature-rich vanilla-JS table you instantiate against a DOM element and drive imperatively (table.setData(...), table.on('cellEdited', ...)). SvGrid covers a similar feature surface but as a Svelte 5 component: data is a reactive $state array, custom cells are snippets, and there is no manual mount / teardown.

Estimated effort: 2-4 hours per grid - column translation plus swapping imperative setData for reactive state.

Vocabulary cheat sheet

Tabulator sv-grid
new Tabulator(el, { data, columns }) <SvGrid data={...} columns={...} />
{ title: 'Name', field: 'name' } { header: 'Name', field: 'name' }
formatter: fn / formatter: 'money' cell: (c) => renderSnippet(...) or format
editor: 'input' / 'number' / ... editorType: 'text' / 'number' / ...
headerFilter: true columnFilteringFeature
dataTree: true rowExpandingFeature + tree row shape
table.setData(rows) reassign the $state data array
table.on('cellEdited', ...) onCellValueChange
table.setSort(field, dir) api.setSort(field, dir)
layout: 'fitColumns' fitColumns prop

Before / after

- import { TabulatorFull as Tabulator } from 'tabulator-tables'
-
- const table = new Tabulator('#grid', {
-   data: rows,
-   layout: 'fitColumns',
-   columns: [
-     { title: 'Name',   field: 'name' },
-     { title: 'Amount', field: 'amount', formatter: 'money', editor: 'number' },
-   ],
- })
- table.on('cellEdited', (cell) => save(cell.getData()))

+ <script lang="ts">
+   import {
+     SvGrid, tableFeatures, rowSortingFeature, columnFilteringFeature,
+     type ColumnDef,
+   } from 'sv-grid-community'
+   const features = tableFeatures({ rowSortingFeature, columnFilteringFeature })
+   const columns: ColumnDef<typeof features, Row>[] = [
+     { field: 'name',   header: 'Name' },
+     { field: 'amount', header: 'Amount', format: { type: 'currency', currency: 'USD' }, editorType: 'number' },
+   ]
+ </script>
+
+ <SvGrid data={rows} columns={columns} features={features} fitColumns enableInlineEditing
+   onCellValueChange={(e) => save(e)} />

What changes

See also

Frequently asked questions

Is migrating from Tabulator to SvGrid hard?

It is a configuration translation plus one mindset shift: you stop calling setData() and instead let a reactive $state array drive the grid. Budget 2-4 hours per grid.

Is SvGrid free like Tabulator?

Yes. sv-grid-community is MIT-licensed like Tabulator. The optional sv-grid-pro pack (export, import, pivot, AI) is the only paid piece.

Can I keep Tabulator's custom formatters?

You re-create them as Svelte snippets via renderSnippet, which is more powerful than HTML-string formatters - any component or markup works.