Handsontable 版本发布

查看各个版本中的新增内容,包括功能、增强和已解决问题的详细信息。

1月
2月
3月
4月
5月
6月
7月
8月
9月
10月
11月
12月
Handsontable 19.0.0主版本2026年11月26日
功能
  • Added the FormulaBuilder plugin: a formula bar, an inline formula editor with colored references, cell/range/header reference picking, autocomplete, function help, and formula error indicators. DragToScroll no longer starts auto-scrolling on a mouse press that an earlier listener stopped with stopImmediatePropagation(), and the autocomplete, dropdown, and multiselect cell arrows ignore such a press too.
  • Added the preserveTextValue cell meta option that makes the Formulas plugin pass values of text-type cells to the calculation engine as strings, preserving leading zeros of number-like values.
  • Added a searchable matrix of which configuration levels each option takes effect at, and the same information to every option in the API reference.
  • Added the clearManualSizes() method to the ManualRowResize and ManualColumnResize plugins, and the clearManualSize() method to ManualRowResize, which ManualColumnResize already had. They discard the sizes stored by manual resizing, for one row or column or for all of them.
  • Added the textExtractor option, which writes column and row headers to an exported file, and column headers to the clipboard, as the text the grid displays instead of their raw HTML.
  • Added the renderMode option, which lets a grid, column, or cell skip repainting cells that did not change since their last render, together with the markCellChanged() and markAllCellsChanged() methods, and made the selection pass update only the cells whose selection state changed. Under 'onChange', a vertical scroll paints only the rows that enter the rendered area; with merged cells, the cells of the merged blocks repaint too.
  • Added the SheetsBar plugin — a tab bar for switching between sheets of a multi-sheet workbook — and the getManualSize(), getManualSizes(), and setManualSizes() methods to the ManualColumnResize and ManualRowResize plugins.
  • Added the autoLink option, which renders the URLs, email addresses, and phone numbers in cell values as clickable links, with a strict: false mode that also links bare domains and email addresses; formulas.hyperlinks now also accepts a { target, schemes } object, and the Formulas plugin’s registerShortcuts() and unregisterShortcuts() methods are deprecated no-ops because the Alt+Enter link shortcut is a core grid shortcut.
  • Added a sortFixedRows option to the ColumnSorting and MultiColumnSorting plugins. It defaults to false, which keeps the rows frozen by fixedRowsTop and fixedRowsBottom out of sorting, as in 18.0.0. Set it to true to sort the whole dataset, including both frozen areas. The option is grid-level only.
  • Added two ways to narrow what the Filters plugin covers. The new filterFixedRows option, set to false, keeps the rows frozen by fixedRowsTop and fixedRowsBottom out of filtering: they are never hidden by a filter, and their values are no longer listed under Filter by value. Setting filters to false for a column in the columns option now hides that column’s filter controls in its dropdown menu.
  • Added the ImportFile plugin, which loads an .xlsx workbook into the grid through the ExcelJS engine. Features the engine cannot read are reported in one console warning per call. The ExportFile plugin’s XLSX writer now shares the same engine adapter.
  • Added the refetchAfterCreate option to dataProvider. Set it to false to skip the automatic fetchRows refetch after a successful onRowsCreate and apply the server response to the grid yourself, for example to keep a newly inserted row on the current page while the grid is sorted.
  • Added the filterValueComparator option to set a custom order of the values in the Filters plugin’s “Filter by value” list, per column or for the whole grid.
  • Added the getCellDependents and getCellPrecedents methods to the Formulas plugin.
  • Added a showFormulas()/hideFormulas() toggle to the Formulas plugin, so a formula cell can display its formula text instead of its calculated value, and a Ctrl+` shortcut that toggles it.
  • Added a built-in XLSX engine, so importFile: true and exportFile: true read and write .xlsx files without ExcelJS; engines.
  • Added a console warning when the data source has rows but Handsontable cannot find any columns in it, because the first row of data has no fields and neither columns nor dataSchema is set.
  • Added the availableConditions setting to the filters option, which chooses the operators that the Filter by condition lists offer, for the whole grid, per data type, or per column.
  • Added support for a number in the textEllipsis option, which clamps the text of a cell to that many lines and ends it with an ellipsis.
  • Added the maxLength option that limits the number of characters in a cell, without a custom validator.
  • Added the beforePasteParse hook to the CopyPaste plugin. It fires before the clipboard content is sanitized and parsed, and passes a writable copy of the clipboard and the native ClipboardEvent to the callback, so you can clean pasted data without disabling the plugin.
  • Added the fixedColumnsEnd option, which freezes the last columns at the inline end edge of the grid (the right edge in LTR, the left edge in RTL), and fixed the DragToScroll plugin reserving the row header width on the wrong side in RTL.
  • Added row selection checkboxes with a “select all” checkbox in the header (the rowSelection option), with server-side and nested rows support, and a “check all” checkbox for checkbox columns (the headerCheckbox column option). Also, setSourceDataAtCell() now calls the valueSetter once per cell when an afterSetSourceDataAtCell listener exists.
  • Added the sourceLabel option, which lets the value of a key/value source entry in the dropdown and autocomplete cell types be an object, labeled by a property path or a function.
  • Added the freezeBar plugin, which lets users change the number of frozen rows and columns by dragging a bar on the freeze line or with the keyboard, together with the beforeFreezeChange and afterFreezeChange hooks and the getFreezeCount() and setFreezeCount() methods.
  • Added the limitFixedToViewport option, which draws only the frozen rows and columns that fit the grid and keeps the rest of it scrollable.
  • Added the handsontable/themes/types export, so a theme preset re-exported without a type annotation no longer fails declaration emit with TS2742 or TS2883.
  • Added a native date input to the “Is equal to” and “Is not equal to” filter conditions on date and intl-date columns.
  • Added the ViewState plugin, whose getViewState(), setViewState(), and validateViewState() methods capture the grid’s view (sort, filters, hidden and resized rows and columns, frozen panes, pagination, selection, and scroll position) as plain JSON, check it, and restore it.
  • Added the rowId option, the getRowId(), getVisualRowById(), getPhysicalRowById(), and related row id methods, and the afterRowIdsRemoved and afterRowIdsReset hooks, which give each row an id that stays with its record when you sort, filter, move, insert, or remove rows.
  • Added the AsyncValues plugin, which fills cells from promises, one cell at a time or in batches, with a pending and an error state per cell, cancellation of stale requests, a concurrency limit, retries, and an optional undo step per run, and an optional save of the resolved values through DataProvider.
  • Added the getAvailableConditions() method to the Filters plugin, which lists the filter conditions a column offers. A view state now restores the other columns’ filters and skips the filter of a column that cannot offer its condition.
  • Added handsontable/settingsSchema: a JSON Schema of the grid, column, and cell settings, and a validateSettings() function that checks a configuration before you apply it and lists each problem with a path, a code, and a message.
  • Added handsontable.settings-schema.js, a CDN file that adds the HandsontableSettingsSchema global with settingsSchema and validateSettings(), so a page that loads Handsontable from a CDN can validate its settings.
  • Added dynamic-array formulas, error cells, and defined names to the XLSX export and import.
  • Added license gating to the XLSX engine: with a license key that names a tier, importFile and exportFile.
  • Added the hidden_columns_hide and hidden_columns_show keys to the column menu. List them in the dropdownMenu option to show the items. dropdownMenu: true is unchanged. A custom column menu item under one of these keys now uses the built-in action and visibility rule unless you set your own. The MenuItemConfig and PredefinedMenuItemKey types are now also exported from handsontable.
  • Added the import of the errors Excel stores as rich values, such as #SPILL! and #CALC!, to the built-in XLSX engine. Such cells used to import as #VALUE!. A cell holding a linked data type, such as Stocks, is now reported in result.dropped.
  • Added a “Powered by Handsontable DataGrid” bar below the grid for license keys whose terms carry the attribution-bar flag. A license bar now stays within the grid’s declared height.
  • Added the batchEvaluation setting of the formulas option, which makes HyperFormula recalculate once for all changes made inside batch(), and the beforeSuspendExecution, afterSuspendExecution, beforeResumeExecution, and afterResumeExecution hooks.
  • Added the includeSummaryResults option of a column summary, which lets a summary count the results of other summaries inside its range.
  • Added a license tier: a license key can name the Professional tier, which includes every Handsontable feature, and the license key guide lists the features it includes. A key that names no tier keeps every feature.
  • Added an emptyValue option that sets what an emptied cell stores, and stopped a cell editor confirmed without any typing from overwriting the cell’s value with an empty string.
  • Added the AutoRowHeaderSize plugin, which sizes the row header column to its longest label instead of clipping it.
  • React: Added a console warning when a Handsontable function renderer is passed to the renderer prop of HotTable or HotColumn, pointing to the hotRenderer prop instead.
  • Breaking change: Changed colToProp() and propToCol() to return null when the column index or property names no column that exists and is visible, instead of returning the passed argument. Both TypeScript declarations widened to include null. A property name your data does not use is still returned unchanged, and the modifyData hook now receives null as its column argument for a numeric property that names no column, with its TypeScript declaration widened to match.
  • Breaking change: Changed height: 'auto' to no longer clip the grid, so the page or the nearest scrolling ancestor scrolls it and its rows stay virtualized. See the migration guide for the other width and height changes.
  • Breaking change: The autocomplete, dropdown, and handsontable cell types now default textEllipsis to true, so a long value stays on a single line and truncates with an ellipsis clear of the dropdown arrow, and autoRowSize sizes their rows to one line; set textEllipsis: false on the column to restore wrapping.
  • Breaking change: Changed icons to render as <i class="ht-icon ht-icon-<name>"> elements driven by --ht-icon-<name> CSS variables, and extended the theme icons option to accept SVG strings, class lists (for icon fonts such as Tabler), or renderer callbacks (for Material Symbols ligatures). Pseudo-element icon selectors are removed and the Filters condition caption text moved into a htUISelectCaptionLabel child. Mirrored icons follow the grid’s layoutDirection instead of an ancestor’s dir, and a checkbox on a -no-icons bundle shows the theme’s box with no tick instead of a native checkbox. The iconsMap() theme helper is deprecated in favor of iconStyles(); see the 19.0 migration guide.
  • Breaking change: Changed the TypeScript types of the filters option. The object form now accepts only searchMode, filterFixedRows, and availableConditions, and a column’s filters accepts a boolean or an object that holds only availableConditions, so a misspelled key, a wrong value, or an unsupported per-column key no longer compiles.
  • Breaking change: Changed how undo and redo work: every action is now one undo step that restores the grid state it started from, so an undo puts values back on the right records after rows or columns were moved, sorted, filtered, or trimmed. Hiding, trimming, resizing, freezing, collapsing, custom borders, comments, cell meta, and the pagination page and page size are now undoable, batch(), batchExecution(), and the new runOperation() method group changes into one step, and the new undo: { maxHistory } option caps the history. With undo: false, nothing is recorded anymore.
  • Breaking change: Changed the narrowest width a column can be resized to, in a grid whose headers render the dropdown menu button, from 20px to the icon size plus the cell padding on both sides (32px in Main, 40px in Horizon, 24px in Classic), so the menu button stays inside its own cell. A narrow header now hides the label text first, then the sort indicator, and keeps the menu button. See the migration guide.
  • Breaking change: Changed manualColumnFreeze so that frozen columns can be dragged and columns can be dropped in front of them, as with fixedColumnsStart; to keep the old lock, return false from beforeColumnMove, as shown in the migration guide. Added the restoreColumnPosition option of manualColumnFreeze, a finalIndex argument to the beforeColumnUnfreeze and afterColumnUnfreeze hooks, and fixed the drop guideline being hidden under frozen columns and the selection staying on the old column after a freeze or unfreeze from the menu.
  • Breaking change: Changed updateSettings() so that a new dataSchema, with no columns option set, re-initializes the index mappers and the column-to-property map when the columns it defines change. The grid now resolves the column count of the new schema, and sorting, filtering, and columns that users moved, hid, or resized start over.
  • Breaking change: Changed the colWidths array and function to address columns by their physical index, so a column keeps its width when the user moves it, and when you insert or remove columns. Handsontable never changes the array you pass. Switching colWidths to or from an array, or passing a new array, clears the undo history. See the 18.1 to 19.0 migration guide to keep the old behavior.
  • Breaking change: Changed setValue() on a custom editor that extends BaseEditor so it receives the cell value instead of a string. A React useHotEditor or EditorComponent, and an Angular HotCellEditorComponent, receive that value too. When the editor needs a string, use value == null ? '' : String(value).
  • Breaking change: Declared the enterCommits, filterSelectedItems, notification, maxSelections, valueParser, searchInput, sourceSortFunction, theme, injectCoreCss, and parsePastedValue options in the GridSettings TypeScript type. A value of the wrong type, an unknown notification key, or reading an option without a guard now fails to compile.
  • Breaking change: Changed updateSettings() so that a hook set to null removes the callbacks the settings registered for it, and fixed colWidths: null keeping columns at 50px instead of letting AutoColumnSize size them, and fixed a plugin turned on by updateSettings() reading its previous settings.
  • Breaking change: Changed when plugins set up their initial state: columnSorting, columnSummary, mergeCells, customBorders, pagination, emptyDataState, nestedRows and dataProvider now apply their settings before the first render.
  • Breaking change: Changed loadData() to drop a change that still waits for its cell’s validator, instead of writing it into the new data at the same coordinates, usually a different record. This also applies when loadData() runs right after setDataAtCell() and when the new data holds the same records. afterChange doesn’t fire for a dropped change. The DataProvider plugin writes such an edit again into its own record after the refetch that follows a save. See the migration guide.
  • Breaking change: Changed the rowHeights and minRowHeights arrays and functions to address rows by their physical index, so a row keeps its height when rows are collapsed with nested rows, filtered, trimmed, sorted, or moved, and aligned the nested rows collapse button with the row header label in rows with an exact height. Switching either option to or from an array, or passing a new array, clears the undo history. Also fixed a row inserted below another taking over that row’s hidden state and manually resized height. See the 18.1 to 19.0 migration guide to keep the old behavior.
  • Breaking change: Vue: Changed the Vue 3 wrapper to type-check every HotTable and HotColumn prop in a template, so vue-tsc rejects a wrong value, a non-function hook prop, or data: null on HotTable. Also made the handsontable prop of both components, and the getValue prop of HotTable, reach the grid settings, which they did not before. See the migration guide for what to change.
  • Changed how the nestedRows plugin treats collapsed rows when the data is replaced: updateData() now keeps the collapsed parents, matching them by their position in the tree, while loadData() drops them, so getCollapsedParents() no longer reports parents from the previous dataset.
  • Changed how a clipboard with rows of unequal length is pasted: it now pastes as wide as its widest row, a shorter row empties the cells it covers, content repeating into a larger selection repeats on that width, and a merged cell reaching past the last column is trimmed to fit. 
  • Content shaped like an HTML tag, a markup declaration, or a character reference is now what routes cell and header text through the HTML write path. Ordinary text holding &, ;, < or > is written as plain text, which keeps it from stopping a grid from rendering under a Trusted Types policy. A character reference without its closing semicolon, such as &copy 2024, now renders literally.
  • When manualColumnFreeze is enabled, the column (dropdown) menu now offers the “Freeze column” and “Unfreeze column” entries by default, and rebuilds its item list every time it opens.
  • Made a grid with a pixel width and no height scroll its columns inside its own box while the page scrolls its rows, and fixed the preventOverflow: 'horizontal' layout (the bottom frozen rows now scroll with the page, the vertical scroll hooks fire, and the workspace width follows the container).
  • Improved scrolling performance by removing a redundant re-render that ran whenever the grid was scrolled across its horizontal start.
  • On a grid with column headers, the header now owns the gridline below it at every scroll position, so the first body row no longer renders a pixel taller than the rest and the grid’s height no longer changes when it is scrolled. columnHeaderHeight resolves to the same border-box height at every scroll position as a result, and because that height includes the header’s 1px top and bottom borders, columnHeaderHeight: 40 leaves a 38px content box instead of 39px on an unscrolled grid.
  • Made a vertical scroll keep the row elements of the rows that stay rendered, so a tr moves with its row instead of being repainted in place and a renderer that caches per element keeps its cache across the scroll.
  • Improved rendering performance when rows shrink after a column resize: the viewport refill now renders only the newly added rows instead of re-rendering every visible row on each refill pass, so cell renderers and the beforeRenderer and afterRenderer hooks run once per cell for that draw.
  • Moved the drag behavior shared by the manualRowResize and manualColumnResize plugins into one internal module. Both plugins keep every documented method, option and hook. Their internal members are no longer part of the emitted TypeScript types, including ManualColumnResize#startX, which the API reference never listed but the type definitions did.
  • Made the frozen overlays’ clone holders composited scroll containers, so a scroll frame no longer repaints the whole grid on grids with content-rich cells, and a touch pan over a frozen header now scrolls the grid instead of the page.
  • Changed how the ColumnSorting and MultiColumnSorting plugins sort. Each sorted column is now read in one guarded bulk pass instead of cell by cell, and the sort reorders row positions rather than per-row tuples. A column that sorts with the default comparison (text, and any type without its own sort function, such as dropdown or autocomplete) also extracts each row’s comparison key once instead of on every comparison. Together, this roughly halves the time a large grid takes to sort by a text column. A grid that uses the Formulas or NestedRows plugin, a dropdown, autocomplete, or multiSelect column, a columns[].data accessor, or a column bound to a nested property path (such as data: 'address.city') keeps the per-cell read. When you sort by two or more columns, modifyData and modifyRowData listeners and valueGetter functions now run column by column instead of row by row.
  • Improved filtering performance on large datasets: the Filters plugin now reads each filtered column as plain lists of rows and values, and creates a row’s cell meta inside the filter scan instead of building the whole column’s data up front.
  • Improved the updateSettings() performance with the formulas plugin enabled: a setting that changes the row count, such as toggling nestedRows, now rebuilds the formula sheet once, after the plugins update, instead of twice. A rebuild that fails now surfaces from the first read or render that needed it, and a listener that reads a cell from afterUpdateSettings pays that rebuild inside the read.
  • Improved the performance of loading data and switching sheets on grids with the AutoColumnSize and Formulas plugins enabled, by running the full column measurement once per data load instead of twice.
  • Changed the date, time, and datetime editors to leave the native picker closed when the keyboard opens them, so Tab works after Enter in Chromium, and fixed the time and datetime editors not focusing their input in Firefox.
  • Changed the double-click fill (copy-down) to stop above the first value already in the filled column and at the first gap in the neighboring column, as spreadsheet applications do, instead of filling across gaps or not filling at all.
  • Changed auto-sizing so a column wider than the grid is measured at its content width again, as before 16.2.0, instead of being capped at the width of the grid. This also fixes auto-sized columns that kept a wrapped, narrow width after the grid’s container collapsed and returned.
  • Changed touch taps inside cells when visual selection is off: buttons, file inputs, and links now respond to a single tap. Heads-up: a link in such a cell is now followed on the first tap, where before that tap did nothing.
  • Updated the logo in the trial license badge and the lock screen to the new Handsontable branding.
  • Changed how a hook callback registered more than once is counted: settings that pass a function first added with addHook() stop the hook’s earlier settings function, a callback added with addHookOnce() and then registered again keeps running, and in the Angular wrapper a callback passed both in the settings input and to addHook() runs once, and removeHook() removes it.
  • Changed the grid’s scrollbars to run beside the scrollable area only, so they start after the headers and frozen rows or columns instead of running along the full edge of the grid, and kept the grid’s border visible over them.
  • Changed the label of the “Filter by value” clear link from “Clear” to “Select none” in English, and to the counterpart of “Select all” in 19 other languages. Tests that match the old text need the new one. To keep the old text, override the Filters:buttons.clear key in a language dictionary. Fixed long labels of the two links above the list being clipped at the menu edge.
  • Changed the message for a missing license key: the console warning and the lock screen no longer suggest the non-commercial-and-evaluation key.
  • Changed updateSettings() to render the grid once when the new settings include data. The afterUpdateSettings hook now runs before that render, so getCell() there returns the previous render, and a React HotTable update no longer paints twice.
  • React: Changed useHotEditor so value updates in the same render as setValue, and mounted React editors inherit the grid theme color-scheme.
  • React: Changed @handsontable/react-wrapper to declare react and react-dom 18.0.0 or later as peer dependencies, matching the documented React 18 minimum.
  • Angular: Changed the wrapper to build with Angular 22, which replaces the per-file type declarations with a single bundled types file, while the supported range stays Angular 16 to 22.
  • Angular: Changed the [data] input to update the grid outside Angular’s zone, like the [settings] input. A callback added with addHook() now runs outside the zone on a [data] change too, so async work it starts no longer triggers change detection by itself.
  • Changed the “Powered by Handsontable DataGrid” bar so that a trial license key shows it only when the key’s terms ask for it, like any other key.
  • Breaking change: Removed the non-commercial-and-evaluation license key. Handsontable now reads it, and its second form, as an invalid key, which locks the grid. Deprecated the Angular wrapper’s NON_COMMERCIAL_LICENSE constant, which holds that key. It will be removed in 20.0.
  • Breaking change: Removed the APIs deprecated for removal in 19.0: saveManualColumnWidths(), loadManualColumnWidths(), saveManualRowHeights(), loadManualRowHeights(), Handsontable.helper.sanitize(), the columnHeaders export option (use colHeaders), and the Settings and DataProviderOptions type aliases (use ExportFileSettings and DataProviderFetchOptions). Also fixed the CollapsibleColumns plugin warning that nested headers were missing when a sheet of the SheetsBar plugin declares them.
  • Removed the unused useHeaders key from the AutoRowSize plugin’s default settings. Nothing read it, so row sizing is unchanged, but autoRowSize.getSetting() no longer returns that key.
  • Breaking change: Added treegrid accessibility to the NestedRows plugin: tree attributes on rows, Ctrl/Cmd+arrow keys on a row header to expand, collapse, or move to the parent row, and screen reader announcements. On a row header, Ctrl/Cmd+arrow keys no longer jump to the edge of the row, and Enter no longer toggles while an overlay covers the grid.
  • Breaking change: The Loading plugin now needs the Dialog plugin registered: new Handsontable() throws an error without it, where the loading overlay used to show nothing. Register Dialog alongside Loading. Added dist/manifest.json to the package: a list of every feature, the license token that names it, and the features it needs.
  • Deprecated writing past the last column of an object data source. A paste, populateFromArray(), or setDataAtCell() still adds a property named after the column index, which no column can display, and prints a one-time console warning; the write will be ignored in Handsontable 20.0.0. Use setDataAtRowProp() to write a field the grid shows no column for.
  • Deprecated the spliceCol() and spliceRow() methods. They still work but print a one-time console warning and will be removed in 20.0.0. Use populateFromArray() or alter() instead.
  • Added the sr-Latn-RS language code for Serbian (Latin) and deprecated the sr-SP code, which will be removed in 20.0.
Handsontable 18.1.32026年11月20日
修复
  • Fixed slow scrolling of grids with many custom borders.
Handsontable 18.1.22026年10月7日
功能
  • Changed entitlement license keys to protect their human-readable text as well as their bracketed block, so the block alone, edited text, or text after the block makes a current key invalid, while a rewrapped, one-line, or \n-escaped key still works.
修复
  • Fixed entitlement license keys whose bracketed block was broken across lines, for example by an email client, reading as invalid and locking the grid.
Handsontable 18.1.12026年9月15日
修复
  • Fixed problem where copying, cutting, and pasting was doing nothing in a grid embedded in a Salesforce Lightning Web Component.
  • Fixed a filters plugin crash thrown when a cell in a filtered column was edited, or the data was replaced with a filter active, after updateSettings() was called with the filters option (as the React and Angular wrappers do on every update).
Handsontable 18.1.02026年9月1日
功能
  • Added the modifySinglePassLayout hook, which forces the previous measure-then-render layout path for a table.
  • Added the selectionHandles option, which shows draggable handles at each edge midpoint of a selected range for resizing the selection, and the moveCells option for moving a cell selection to a new location by dragging its border.
  • Added Persian language RTL direction support.
  • Added support for entitlement license keys, and made a missing or invalid license key block the grid with a modal that cannot be closed.
  • Added the intl-datetime cell type, with a native date-time picker, Intl.DateTimeFormat display via the new dateTimeFormat option, and column sorting, filtering, and Excel export support.
  • Added the preserveNumericLiteral option to the numeric cell type, which keeps the exact value you type in the cell editor (preserving trailing decimal zeros and large-number precision).
  • Added the colorScheme and density options, which set the color scheme and the spacing of the grid without declaring a theme.
  • Added a public API to the NestedRows plugin for collapsing and expanding parent rows: collapseAll(), expandAll(), collapseParent(), expandParent(), toggleParent(), getCollapsedParents(), isParentCollapsed(), isParent(), getRowLevel(), getRowParent(), countChildren(), expandToRow(), and expandToLevel(), plus the new beforeRowCollapse, afterRowCollapse, beforeRowExpand, and afterRowExpand hooks. The plugin also no longer loses its collapsed rows on an updateSettings() call, and no longer throws when asked for the index, parent, or nesting level of a row object held from before a loadData() or updateData() call.
  • Added the formulas.hyperlinks option, which renders cells holding a HYPERLINK formula as clickable links.
  • Added the SanitizerContext type, which lists the write surfaces the sanitizer option receives.
  • Reduced memory usage when scrolling large datasets by releasing cell metadata for rows scrolled out of the viewport.
  • Improved the performance of sorting, filtering, and row/column hiding on large datasets by speeding up internal index translation.
  • Improved initialization time for large date-typed datasets by validating ISO dates arithmetically instead of constructing a Date object for every cell.
  • Improved initial render time and memory usage for large datasets with uniform row heights and column widths.
  • Improved filtering performance on large datasets by writing the row-trimming state in a single bulk operation instead of scanning and updating it row by row.
  • Improved vertical scrolling performance for grids with pinned bottom rows (fixedRowsBottom).
  • Improved the performance of sorting, filtering, hiding, and inserting/removing rows/columns on large datasets by removing redundant per-operation work in the index translation layer.
  • Improved the performance of the internal hooks (events) dispatch: each hook's callbacks are now stored in a linked list, and removing a hook frees it immediately instead of accumulating skipped entries that were iterated over on every run.
  • The grid now renders in a single pass, predicting whether scrollbars will appear instead of rendering, measuring, and re-rendering. The mergeCells plugin keeps the previous path, and the modifySinglePassLayout hook opts out of it.
  • Improved vertical scrolling performance by skipping the column header re-render when the column layout is unchanged.
  • Improved vertical scrolling performance by re-rendering only the rows entering the viewport and reusing the rows that stay.
  • Improved scrolling performance for grids embedded in complex pages by keeping the rendered cells in place during scroll instead of re-inserting them.
  • Improved scrolling smoothness: the auto mode of viewportRowRenderingOffset and viewportColumnRenderingOffset now extends the rendered viewport dynamically in the scroll direction, so consecutive scroll steps reuse already-rendered cells.
  • Improved the performance and memory usage of the cell meta storage. Reading cell settings stays fast on large grids. Memory used by settings of scrolled-away rows is released. Bulk operations - sorting, copying, pasting, filling, exporting, validation, checkbox toggling, and automatic size sampling - no longer permanently cache settings for every visited cell. Added the getCellMetaTransient() method for reading the effective cell configuration without caching it.
  • Improved memory usage of read-only cell settings lookups. The context menu, filters dropdown, formulas synchronization, data type detection, column summaries, and clearing large selections no longer permanently cache settings for every visited cell.
  • Improved scroll-to-row performance on large grids: keyboard navigation and scrollViewportTo near the bottom of the dataset now compute the scroll offset in constant time instead of summing every row height from the top.
  • Improved performance of copy, autofill, bulk edits, header resize, and custom borders on large selections by replacing linear membership scans with set-based lookups.
  • Improved rendering performance of grids with wrapped or content-sized rows: the row-height cache is no longer rebuilt on every render, edit, or scroll step when row heights have not changed, and rebuilds triggered by newly measured rows now scale with the number of taller rows instead of the total row count.
  • Improved index-map performance: writing an unchanged value into scalar-valued index maps (hiding, trimming, order sequence, and the automatic or manual row/column size maps) no longer rebuilds the index caches.
  • Improved the performance of the MergeCells plugin: scrolling, extending large selections, and moving the focus with the keyboard no longer slow down with the grid or selection size.
  • Improved Formulas plugin performance on large grids: faster rendering and sorting through cached index translations, and bulk row/column removals now issue batched engine calls.
  • Improved sorting performance on large datasets: date and time columns no longer re-parse values on every comparison, and text columns no longer re-lowercase values on every comparison.
  • Improved Filters plugin performance: batch changes into a filtered column update the filter list once per column instead of once per changed cell, importing conditions updates once per column instead of once per condition, and applying filters no longer re-reads rows already rejected by earlier columns.
  • Improved the performance of bulk grid alterations: removing many rows or columns, inserting multiple columns, pasting data that extends the grid, and edits with the minSpareCols or minCols options on large datasets.
  • Improved getColHeader performance: the index translation derived from the columns function is now cached instead of being rebuilt on every call, which also speeds up grid initialization and updateSettings on grids with many columns.
  • Improved sizing plugins performance: AutoColumnSize measures only the changed cells on edits instead of rescanning whole columns, its background width sweep is budgeted and runs on browser idle time, AutoRowSize reuses the cached header height on selection-driven renders, and a multi-column resize triggers one height recalculation instead of one per column.
  • Changed how touch opens the cell editor on devices that report both touch and mouse input, such as iPad: a double-tap opens it (taps up to 1 second apart), and a single tap on an already selected cell no longer opens it as it did in 18.0.0, where duplicated mouse events after the tap triggered the double-click.
  • Removed leftover Pikaday styles from the themes.
修复
  • Fixed a Sheet size limit exceeded error thrown when grids sharing one HyperFormula instance used different maxRows values. The grid's maxRows and maxCols no longer limit the engine, so an oversized insert is now capped at the limit instead of being rejected.
  • Fixed a bug where dragging a selection handle to the edge of the grid on a mobile device did not scroll the viewport, so the selection stopped growing at the last visible cell.
  • Fixed the columnSummary plugin misbehaving when another plugin trimmed rows (for example a collapsed nestedRows group): false out-of-bounds warnings, results written into the wrong row, a crash when the destination row was hidden, and hidden summary rows being counted as data by other summaries.
  • Fixed the 'filter by value' list dropping the values that the column's own filter condition filtered out, which made them impossible to select again.
  • Fixed open menus (context menu, dropdown menu, and filters) becoming detached from the grid when a scrollable parent container or the grid viewport was scrolled. Menus now follow their anchor and close when it scrolls out of view.
  • Fixed a nested header bug where a wide column group's label jumped while scrolling horizontally.
  • Fixed an error thrown by countRowHeaders() and countColHeaders() when they were called while the table view was unavailable (during initialization or after the instance was destroyed).
  • Fixed merged cells breaking after filtering, trimRows/nestedRows collapse, or sorting - merges now stay whole and follow the visible rows.
  • Fixed nested headers not following the data when moving columns; labels now travel with their columns, a group split across non-adjacent columns renders as separate banners, and a collapsed group either follows the move or expands when the move would split it.
  • Fixed nested column headers ignoring stopImmediatePropagation() called in the beforeOnCellMouseOver hook, so a header drag-selection can now be blocked the same way as for regular column headers.
  • Fixed stale cell metadata left behind after unmerging cells, which made toHTML() output extra cells.
  • Fixed undo not restoring merged cells after removing a column that overlapped a merge.
  • Fixed missing selection border edges and active header highlight accents along frozen-pane boundaries (fixedRowsTop / fixedRowsBottom / fixedColumnsStart).
  • Fixed context menu inserting two rows instead of one when tapping 'Insert row above' or 'Insert row below' on iPad (Safari).
  • Fixed multiselect cell type displaying a neighbouring column's value after moving the column with manualColumnMove.
  • Fixed a bug where Ctrl/Cmd+clicking an already-selected cell in a multi-cell selection caused the active highlight to jump to a different cell.
  • Reduced memory usage when filtering large datasets: the Filters plugin no longer permanently retains a cell meta object for every source row of each filtered column.
  • Fixed an error thrown when removing a frozen column while using the legacy fixedColumnsLeft option.
  • Fixed the multiselect cell type so its option filtering folds case in a locale-aware way, consistent with the autocomplete editor, for Turkish, Azeri, and Lithuanian locales.
  • Fixed the horizon theme row header background color not cascading from headerRowBackgroundColor for even rows.
  • Restored the multiSelect camelCase alias for the MultiSelect cell type, so both multiselect and multiSelect resolve to the same cell type.
  • Fixed a load-time slowdown where loadData() and updateData() resolved cell metadata for the entire dataset when a cells function was configured, even with no validators defined.
  • Fixed the multiselect cell type not firing beforeChange and afterChange (or running validation) when a value was removed by clicking the chip's X icon.
  • Fixed date filter conditions returning no results by rendering native date and time inputs in the filter menu instead of free-text fields.
  • Fixed an autofill bug where dragging the fill handle of the last column slightly diagonally, past the table's edge, drew the fill border but did not apply the values.
  • Fixed the modifyCopyableRange hook's type declaration to reflect that its return value is used.
  • Fixed the ContextMenu.SEPARATOR constant missing from the TypeScript type declarations.
  • Fixed a doubled separator line under the 'Filter by value' list in the dropdown menu.
  • Fixed removing rows throwing a 'Maximum call stack size exceeded' error on grids with roughly 125,000 rows or more.
  • Fixed the Events type resolving every hook callback to any, so callbacks typed through Events[hookName] and addHook now get correct parameter types and autocomplete.
  • Restored the horizon theme alternating stripe on even row headers, which stopped showing after the even row header background was made to cascade from headerRowBackgroundColor.
  • Fixed a grid configured with a width and no height collapsing vertically. Relative widths (100%, percentages, viewport units, calc() with them) keep scrolling horizontally with the window, while definite pixel/em widths clip to their box.
  • Fixed autofill dragging near vertically merged cells - the fill handle can now target rows inside a merged band in a neighboring column instead of jumping past the whole merge.
  • Fixed an error thrown on touch devices when the grid was destroyed while a momentum scroll was still coasting.
  • Fixed custom editors created with editorFactory throwing an error when shortcuts were defined without shortcutsGroup.
  • Fixed an error thrown on every focus change when the grid failed to initialize.
  • Fixed a failed fetchRows call in the dataProvider plugin surfacing as an unhandled promise rejection.
  • Fixed the autocomplete editor and several internal utilities using Array.prototype.toSorted and Array.prototype.at, which are not available in every browser the library declares support for.
  • Fixed an Error: TR was expected to be rendered but is not thrown when a beforeDraw hook cancels a render after the rendered row range has already advanced.
  • Fixed a spurious scrollbar appearing when a cell in the last column or row was selected in a grid with frozen columns or rows - the fill handle now stays inside the viewport instead of overflowing it.
  • Fixed the Formulas plugin leaving its internal redo state active after a redo operation, which made the plugin treat subsequent operations as undo/redo replay.
  • Fixed the grid's cell styling (borders, padding, background, box-sizing, and corner radius) leaking into a table or other element rendered inside a cell.
  • Fixed several CustomBorders bugs: borders now follow their cell when rows or columns are inserted, removed, or moved (and stay removable from the context menu afterward), and ranges defined with a top-level border object - including overlapping ranges - now render with the configured width, color, and style. Also added the customBordersProgressive option, which applies a large customBorders configuration in background batches so the grid renders immediately, together with the afterCustomBordersUpdate hook that fires once all custom borders have been applied.
  • Fixed the license notification bar content overflowing on grids narrower than 300px.
  • Fixed Handsontable errors not carrying their identifying cause on Safari below 15.
  • Fixed rows losing their alignment when the tallest cell in a row was in a frozen column.
  • Fixed a formula cell staying marked as invalid after an undo or redo restored a correct value.
  • Fixed being unable to move a column by dragging its header while column sorting is enabled. Sorting by clicking a header now happens on mouse up instead of mouse down, and only the header label and its sort indicator sort on click. A click on a column header no longer fires beforeColumnMove and afterColumnMove, which previously ran even though no column moved.
  • Fixed mobile selection handles not being visible on touch devices.
  • Fixed the full bundle failing to load on pages with an AMD loader present (RequireJS, SharePoint).
  • Fixed an error thrown when a grid initialized in a hidden container was destroyed right as it became visible.
  • Fixed autoRowSize and autoColumnSize measuring cells without the styling applied through their className and without the formatting applied by the renderer's own valueFormatter, which left the row headers misaligned with the data cells.
  • Fixed grid interactions inside Shadow DOM and sandboxed hosts such as Salesforce Lightning Web Components: the cell editor no longer closes when clicked, copy and paste work, focus is released when it leaves the grid, outside clicks clear the selection, and the grid's internal z-index values no longer paint above the host page UI.
  • Fixed the dropdown and autocomplete editor list rendering narrower than the edited column when trimDropdown is set to false.
  • Fixed the fixedRowsTop, fixedRowsBottom, and fixedColumnsStart options losing their value after undoing a row or column insertion, which un-pinned a frozen row or column.
  • Fixed autofill dragging near horizontally merged cells - the fill handle can now target columns inside a merged band in a row below the merge instead of snapping back to the merge anchor.
  • Fixed the autocomplete and dropdown option list collapsing to zero height, hiding every option, when less than one option of space was left below the edited cell.
  • Fixed misaligned column headers and frozen columns, and a grid that filled its container only after a click, when it was created in a container that had no size yet.
  • Fixed a memory leak where each loadData() or updateData() call added another formula engine sheet, so repeated data loads kept slowing the grid down.
  • Fixed the autofill fill handle being cut in half at the bottom freeze line.
  • Fixed a bug where the afterSelectionEnd and afterSelectionEndByProp hooks fired twice when selecting rows or columns by dragging over their headers.
  • Vue: Fixed the Vue 3 wrapper not updating the grid when HotColumn components were added, removed, or reordered dynamically.
  • React: Fixed a memory leak in the React wrapper where the portal containers used by component-based renderers were retained for every scrolled cell instead of being released once a cell left the viewport.
  • React: Fixed missing TypeScript autocomplete and type checking for <HotTable> and <HotColumn> props.
  • Angular: Fixed custom editor shortcut groups in the Angular wrapper.
  • Fixed the grid no longer responding to keyboard shortcuts after clicking focusable plugin UI placed in the grid's layout slots (for example, pagination controls).
  • Fixed an open cell editor staying visible over an unrelated row, and committing to a row you could no longer see, when the edited cell was hidden - for example by turning a Pagination page or hiding its row or column.
  • Fixed an expired trial license key not blocking the grid when the key carried the no-ui-warns flag.
  • Security:
    • Fixed pasted HTML being able to run scripts, and applied the sanitizer option to the surfaces that previously skipped it.
    • Fixed the dialog plugin interpolating an unvalidated template.id into the dialog's id attribute, and the loading plugin rendering its title and description options as HTML. Those two loading options now render as text, so markup passed in them shows up literally instead of being interpreted; use icon for markup. The button type option of the dialog, emptyDataState, and notification plugins is now resolved where the markup is built.
Handsontable 18.0.0主版本2026年6月30日
功能

A core rewritten in TypeScript

  • The entire Handsontable core has been rewritten from JavaScript to TypeScript. This is a long-term investment in stability and developer experience that touches nearly every part of the codebase.
  • The rewrite brings strict-mode compatibility, type-aware lint rules, and stronger typings for built-in renderers, editors, and validators - the cell properties passed into them now use the canonical CellProperties interface instead of a loose record type. It also folded Walkontable, the rendering engine, into the main type-check program and cut its as unknown escape-hatch casts by roughly 85%.
  • For everyone consuming the published package, the broken and ambiguous type declarations that previously tripped up ESM and CJS setups have been fixed. The shipped .d.ts files are now compatible with TypeScript 5.1 and later, so editor autocompletion and type checking should work out of the box.
  • Because this is a foundational change to how the source is written and typed, it's a breaking change. Most applications will not need code changes, but stricter type definitions can surface issues that were previously hidden.

Faster rendering and dramatically lower memory use

  • Walkontable now renders directly to the DOM, and Handsoncode removed the old diffing renderer entirely. This cut the grid's memory footprint by roughly 50%, reduced memory use during scrolling, and resolved potential out-of-memory errors on very large datasets. On top of that, it no longer eagerly materializes cell metadata for the whole grid on load - it's computed lazily as cells are actually used. For large datasets the impact is substantial: on a 100,000 x 100 grid, around a 90% reduction in memory and roughly 30x faster initial render time.
  • Cell meta set imperatively with setCellMeta (for example, readOnly) is no longer reset by updateSettings.
  • Faster repeated getSourceData() calls inside the cells function and custom renderers, cached overlay alignment calculations, and faster locale-aware text comparisons across search, filtering, sorting, autocomplete, and checkbox rendering.

A new layout system

  • Handsontable 18.0.0 introduces a new layout option that lets you control the order of UI elements rendered around the grid, such as pagination and the dialog.
  • To make this possible, built-in UI now mounts into dedicated wrapper containers rather than being injected ad hoc, which changes the root DOM structure - a breaking change to be aware of if you target Handsontable's markup with custom CSS or scripts.
  • The license notification always renders last in the bottom area and is not orderable, and the Notification plugin now renders its toasts in the grid's overlay layer for more reliable positioning.

A smaller, dependency-free bundle

  • Removed four runtime dependencies - numbro, moment.js, DOMPurify, and handsontable/pikaday - in favor of lighter, built-in implementations. This trims the bundle and reduces the surface area for transitive security and maintenance issues. Removing these is a breaking change for anyone relying on them indirectly through Handsontable.
  • Retired some long-deprecated APIs:
    • The PersistentState plugin, its persistentState option, and its associated hooks have been removed.
    • The Core-level undo/redo methods (hot.undo(), hot.redo(), and friends) are gone. Use hot.getPlugin('undoRedo') instead.

A modernized Angular wrapper

  • The Angular wrapper has been modernized to align with current Angular versions.

New configuration options

  • This release adds a few new ways to configure the grid:
    • hashRevealDelay on the password cell type briefly shows each character as it's typed before masking it.
    • visibleWhen on nested headers ('collapsed', 'expanded', or 'always') lets you choose which columns of a collapsible group stay visible in each state.
    • Public types such as CellMeta, CellProperties, ColumnSettings, and GridSettings are now re-exported as named top-level imports from handsontable and handsontable/base, so you no longer have to dig through internal paths to type your code.

Theming changes

  • Simplified the border-related theme variables. The --ht-wrapper-border-radius variable has been renamed to --ht-border-radius, and the --ht-wrapper-border-width and --ht-wrapper-border-color variables have been removed. If you reference these in a custom theme, you will need to update them when upgrading.

Interaction improvements

  • A few changes make everyday interactions feel closer to a desktop spreadsheet. Dragging a selection past the edge of the viewport now scrolls the grid and extends the selection to the newly revealed cells, and the autofill selection direction now matches the drag direction, the way Google Sheets and Excel behave.

Documentation: new guides, recipes, and a Vue section

  • This release adds documentation for its biggest changes. Layout slots is the counterpart to the new layout system, showing how to place custom UI in the wrapper slots around the grid and control the order of elements in each slot. TypeScript types is a complete reference of the types and interfaces Handsontable now exports, with usage examples for settings, hook callbacks, custom renderers, and editors. And a new Migrating from 17.1 to 18.0 guide walks through removing the moment.js, Pikaday, numbro, and DOMPurify dependencies and updating your TypeScript imports.
  • Vue 3 now stands alongside React and Angular as a first-class framework in the docs, with its own dedicated section and new examples. Vue developers get first-party guidance written for Vue, instead of adapting the vanilla JavaScript examples.
Handsontable 17.1.02026年5月19日
功能

Export to Excel

  • The new Export to Excel feature lets you save the rendered table to an XLSX file - directly from the grid.
  • The export respects what the user is actually looking at: column order, visible columns, applied filters, sort order, frozen rows/columns, and merged cells all carry over into the generated file. Cell types map to their Excel equivalents where possible (numeric, date, checkbox), so the file opens cleanly in Excel, Google Sheets, and Numbers.
  • Export is triggered through the plugin API and can be wired to any UI control - a toolbar button, a context menu item, or a keyboard shortcut. For large datasets, the operation runs asynchronously so the UI stays responsive, which pairs naturally with the new Notifications plugin to confirm completion.

Server side row model

  • Server-Side Row Model is a built-in integration layer for backend-driven tables. Instead of loading the full dataset into the browser, the grid requests only the rows it needs and delegates sorting, filtering, and pagination to your server. This dataProvider plugin defines a clear CRUD contract that your backend implements:
    • Create - persist newly inserted rows.
    • Read - fetch a page of rows with the current sort, filter, and range state.
    • Update - persist edited cells.
    • Delete - persist removed rows.
  • Each operation receives a structured request describing the grid's current state and expects a structured response, so you can plug the contract into REST, GraphQL, or any transport of your choice. State management, optimistic updates, and reconciliation after failed requests are all handled by the plugin.
  • The result is that datasets of hundreds of thousands of rows become viable without custom virtualization or hand-written adapter code - and the integration pattern is consistent across projects, which matters when the same team ships multiple data-heavy apps.

Notifications (Toasts)

  • The new Notification plugin adds a built-in toast system for communicating status to users. It supports four types out of the box - info, success, warning, and error, along with configurable positioning, duration, and dismiss behavior.
  • Notifications can also be triggered from custom cell types, hooks, and plugins, making them useful well beyond this release's features.

Theme Builder: AI Assistant

  • Theme Builder now includes an AI chat assistant that can generate themes and sample data from natural-language prompts. Ask it for 'a dark theme matching the Stripe dashboard' or 'a high-contrast theme for financial reporting' and it produces a Themes API token set you can preview, tweak, and export.
  • This builds on the Themes API foundation introduced in 17.0, the assistant writes token mappings, not CSS overrides, so generated themes stay compatible with density modes, light/dark switching, and the rest of the theming system.

Docs Platform Updates - Migration to Astro Starlight

  • Migrated handsontable.com/docs from VuePress 1 to Astro Starlight. The user-facing benefits:
    • Faster page loads and smaller JS payloads (island architecture, zero-JS by default).
    • Improved AI/LLM readability - code blocks and content are server-rendered as static HTML, which makes the docs easier to index and cite by tools like Claude, ChatGPT, and Perplexity.

Docs AI Assistant

  • The docs now include an AI Assistant that can answer questions, generate code samples, and help you find the right docs pages on any topic. Just click the Ask AI button to begin chatting.

New Recipes

  • Added over 40 new recipes with detailed examples on Accessibility & UX, Real-time & Integrations, Column and Data Management, Cell Types, Context Menu, Import/Export, Editing and Validation, Filtering and Search, Rendering and Styling, Performance, and Themes.

Accessibility Conformance Report (VPAT)

  • Published an Accessibility Conformance Report based on the VPAT 2.5 template, documenting Handsontable's conformance with WCAG 2.1 AA, Section 508, and EN 301 549. This is aimed at procurement, government, and enterprise customers who need formal accessibility documentation as part of their vendor evaluation.

Performance

  • Performance is one of the top priorities, and 17.1 ships meaningful improvements for large datasets.
Handsontable 17.0.12026年3月25日
功能
  • Improved clipboard processing after pasting.
  • Added missing Core typings so the public API is correctly declared in TypeScript.
修复
  • Fixed UndoRedo crash when nullified changes.
  • Fixed UndoRedo beforeChange order.
  • Fixed a bug where the editor does not receive the user inputs.
  • Fixed scrollbar width calculation on Safari >=26.
  • Fixed rounded corners that may be applied in incorrect use cases.
  • Fixed undo/redo stack desync with formulas engine.
  • Fixed column width calculation for collapsed columns.
  • Fixed an issue with table background overflow.
  • Fixed column header misalignment when nestedRow is enabled.
  • Fixed an issue with mobile select handles styles.
  • Fixed an issue with scrolling issue that occurs when preventOverflow is enabled.
  • Fixed date picker positioning near viewport edges.
  • Fixed an issue with main theme hover on menu icon background color.
Handsontable 17.0.0主版本2026年3月9日
功能

Native support for MultiSelect Cell Type

  • The new MultiSelect cell type is designed for scenarios where a single field needs to store multiple values. Now you can select any number of options within the same cell from the dropdown menu that supports search, filtering, and full keyboard navigation.
  • Once selected, values are stored directly in the table's source data as an array, keeping the data model clean.
  • Each selected item is rendered inside the cell as a removable chip, making it easy to review or adjust selections made.
  • The multiSelect cell type offers a flexible set of options so you can adjust both its behavior and presentation:
    • allowEmpty: Defines whether an empty selection is considered valid (enabled by default).
    • placeholder: Shows informative text in the cell when no values are selected.
    • visibleRows: Sets how many options are visible at once in the dropdown list.
    • maxSelections: Restricts the number of items a user can choose.
    • sourceSortFunction: Applies custom logic to control how options are ordered.
    • enterCommits: Specifies whether pressing Enter finalizes the selection and closes the editor.
    • searchInput: Enables or disables the built-in search field within the dropdown.
    • filteringCaseSensitive: Determines whether the search function distinguishes between uppercase and lowercase characters.

Simpler Definition for Custom Cell

  • Previously, building a custom editor often meant extending base classes, understanding the full editor lifecycle, and writing repetitive setup code. With the new rendererFactory and editorFactory helpers, you start with a small, working cell definition and extend it only where needed. The factory automatically manages container creation, positioning over the active cell, lifecycle methods (init, beforeOpen, afterOpen, afterClose), and keyboard shortcut handling.

New Themes API: Flexible and Design Systems Friendly Foundation

  • This release introduces a new Themes API that makes styling your table more structured, flexible, and aligned with modern design systems. The new theme architecture is built around four core elements: Token Mapping, Icons, Colors and Light/Dark Mode. Instead of relying on scattered CSS overrides, themes now use a consistent token model with scalable color palettes (100-900, similar to Tailwind or Material Design) and size tokens based on an 8px grid system (size-1 = 8px, size-2 = 16px, etc.). This color and sizing model now makes it much easier to connect Handsontable with existing design systems.
  • A new Density feature lets you switch between compact, default, and comfortable spacing modes, helping you adapt the table to different UX needs without rewriting styles. Styling can still be customized through CSS variables, but now also via a Token API in JavaScript, enabling runtime adjustments and better flexibility.
  • This release also focused on simplifying theme setup. The Main theme is now applied automatically, so there's no need to manually declare a theme or import separate CSS files. In previous versions, you had to include handsontable.js, handsontable.css, and a separate theme stylesheet, but now you only need handsontable.js to get started, reducing setup steps and making integration cleaner.

Theme Builder Updates

  • Alongside the Themes API improvements, the Theme Builder has been updated to align with the new token structure. It now features a redesigned interface that is cleaner and more intuitive to navigate. With clear token descriptions, per-token reset options, and real-time previews, it's easier to understand how each change impacts the table design and make full use of Theme Builder capabilities.

Dependency Reduction

  • Version 17.0.0 focuses on reducing external dependencies to optimize bundle size, improve loading performance, and give you more control over the runtime environment.
  • Numeric Formatting - Numeric cells now use the native Intl.NumberFormat API. The previous pattern and culture options based on numbro.js are deprecated in 17.0.0 and will be removed in the next major release.
  • Date and Time Formatting - Date and time cells now use intl-date and intl-time, powered by Intl.DateTimeFormat. String-based Moment.js formats are deprecated and scheduled for removal in the next major version. This change improves performance and aligns formatting with modern, locale-aware APIs.
  • Built-in HyperFormula - The built-in HyperFormula engine used by the Formulas plugin is deprecated in 17.0.0 and will be removed from package.json in version 18.0. Handsontable will no longer bundle HyperFormula by default. If you use the Formulas plugin, you should install HyperFormula directly in your project and pass it to the plugin configuration (with licenseKey: 'internal-use-in-handsontable'). This change reduces the default package size and gives you control over the formula engine version used in your application.
  • HTML Sanitization - Introduced a new sanitizer option that lets you define your own HTML sanitization logic. DOMPurify is still used by default in 17.0.0 (with a deprecation warning), but it will be removed in the next major release.
  • Polyfills - In 17.0, Handsontable no longer includes core-js, which previously provided polyfills for older JavaScript features. Handsontable now targets modern JavaScript environments. If you need to support older browsers, you can add the required polyfills in your own application setup, based on your specific compatibility requirements.