Frameworks Overview
NextGrid’s official adapter packages (next-grid-react, next-grid-vue, next-grid-svelte, next-grid-angular) are thin lifecycle, prop-sync, and portal/teleport bridges over next-grid-js/core. They never fork core rendering or virtualization behavior.
Adapter Comparison
Section titled “Adapter Comparison”Mounting & SSR
Section titled “Mounting & SSR”| Package | Target Framework | Mounting Surface | SSR |
|---|---|---|---|
next-grid-react |
React 18 & 19 | <NextGrid /> component |
Empty container on server; mounts on client |
next-grid-vue |
Vue 3.4+ | <NextGrid /> component |
Empty container on server; mounts on client |
next-grid-svelte |
Svelte 5.46+ | use:nextGrid action |
Action skipped on server; mounts on client |
next-grid-angular |
Angular 21 & 22 (standalone) | <next-grid /> component |
Empty <next-grid> on server; mounts in browser |
Events, Instance & Components
Section titled “Events, Instance & Components”| Package | Events | Instance Access | Renderers & Editors |
|---|---|---|---|
next-grid-react |
on* props (onSortChanged) |
ref (Grid<T> | null) |
reactCellRenderer, reactPinnedCellRenderer, reactCellEditor (React Portals) |
next-grid-vue |
@sort-changed, etc. |
Template ref (NextGridExposed<T>) |
vueCellRenderer, vuePinnedCellRenderer, vueCellEditor (Teleport) |
next-grid-svelte |
on* options (onSortChanged) |
onGrid(grid | null) callback |
svelteCellRenderer, sveltePinnedCellRenderer, svelteCellEditor (mount + getAllContexts()) |
next-grid-angular |
(sortChanged), (gridError), (gridReady) |
(gridReady) & grid property |
angularCellRenderer, angularPinnedCellRenderer, angularCellEditor |
Shared Rules Across All Adapters
Section titled “Shared Rules Across All Adapters”- Create Once, Update Incrementally: Adapters instantiate
Gridfromnext-grid-js/coreonce on mount and route mutable prop changes toGridApisetters (setColumnDefs,setRowData,setHierarchyOptions,setPivot,setPinnedRows,setCellSpans,setTheme, etc.). - Value vs. Reference Comparison:
- Plain objects and arrays on value-compared props (
pivot,pinnedRows,cellSpans,columnGroups, etc.) are compared by value, so inline object literals do not trigger unnecessary updates. columnDefsandrowDataare compared by reference: memoizecolumnDefs(useMemo,computed,$derived, or class fields) so columns keep their runtime widths, pins, and sorting/filtering state.- Passing a new
rowDataarray replaces all rows and starts a newdataEpoch(recreating cell renderers and clearing undo history). UseapplyRowTransactionvia the grid instance for in-place updates.
- Plain objects and arrays on value-compared props (
- Construction-Only Options: Options without a runtime setter (
density,direction,localeText,rowHeight,modules,rowModelType,initialState, etc.) are read once at creation. Changing them later has no effect and logs a development warning; remount the grid (key,{#key}, or@if/@for) to apply a new value. - Shared Component Editor Contract:
- Focus moves automatically to the editor’s first focusable control (skipping hidden inputs, disabled controls, and unrendered nodes; elements with
tabindex="-1"come last). Entercommits (except inside<textarea>, whereCtrl/⌘ + Entercommits).commit()andcancel()are bound to their own edit session — calling them after an edit ends (for example after late async validation) is a safe no-op.
- Focus moves automatically to the editor’s first focusable control (skipping hidden inputs, disabled controls, and unrendered nodes; elements with
- Menu Items, Full-Width & Detail: Menu items stay text-and-action objects in all adapters; full-width and detail rows use DOM renderers (
FullWidthRenderer,DetailRenderer).
Frameworks Without an Official Adapter (Solid, Web Components, etc.)
Section titled “Frameworks Without an Official Adapter (Solid, Web Components, etc.)”For frameworks without a dedicated package, mount Grid directly inside the framework’s lifecycle hook (onMount/onCleanup in Solid, connectedCallback/disconnectedCallback in Custom Elements) and call grid.destroy() on teardown.