An invalid licenseKey shows a pale red footer saying the license is invalid (see the console for details). A missing or expired license shows the "Powered by Infinite Table" footer, as before. See licensing.
licenseKey="" means no license key - only an unspecified licenseKey falls back to InfiniteTable.licenseKey.
Fix expired licenses not being detected, and keys with a = in a value being reported as invalid. The license footer is no longer hidden on codesandbox.io.
Vue: the license footer and InfiniteTable.licenseKey work as in React. Add DragList and DragDropProvider, more exports (alignNode, useInfinitePortalContainer, debug, useDataSourceState), and cells are updated in place while scrolling.
Vue fixes: scrollTopKey, autoSizeColumnsKey, the load mask text, controlled checkboxes, filter editors, density changes and master-detail rows.
Themes: shadcn has a dark mode that follows the page's dark className, and ocean, balsam and minimalist no longer use colors from the default theme.
Fix the header depth after leaving pivot mode, drag lists shared by two grids on a page, and drags getting stuck.
Add three themes: terminal, sheet and paper - see available themes.
Add a density setting: the infinite-density--compact, infinite-density--comfortable and infinite-density--spacious classNames scale the row height, paddings and font size, with any theme - see density.
Icons can be replaced via CSS variables (for example --infinite-icon-sort-asc) - see icons.
Add the --infinite-row-height, --infinite-font-size, --infinite-cell-padding-x and --infinite-cell-padding-yCSS variables.
Sorting a string column takes about 20% less time in browser locales such as de-DE, fr-FR or en-AU. The sort order is unchanged.
Very large grids now scroll all the way to the last row. Browsers limit how tall or wide an element can be, so with around a million rows (or fewer, depending on the browser and row height) the scrollbar used to stop before the end. This also applies to wrapRowsHorizontally, where the limit was reached with far fewer rows.
Fix wrapRowsHorizontally showing no rows after a far jump with the scrollbar or the API.
With lazyLoad, expanding a group shows its loading icon instead of masking the whole grid.
With multi-column grouping, a columns.renderGroupIcon from groupColumn now gets the default icon in renderBag.groupIcon, as with a single group column.
Add the multiRowSelectionWith prop: with 'checkbox' (the default), rows are selected with the checkboxes while a visible column shows one; with 'click', clicking rows selects them too.
Row clicks now select in grouped data and in tree data too - a group row or parent node selects its whole group, cmd/ctrl + click toggles it and shift + click selects a range (see ranges with groups and tree selection).
shift + a selection checkbox selects a range, and the spacebar works like a click (or a checkbox click) everywhere - clicks, checkboxes and the spacebar share the range's starting row.
Clicking an expand/collapse icon no longer changes the selection, and a disabled row's checkbox no longer selects it.
This release brings some changes and better clarity around sorting and filtering and where each of those operations happen. Everything is done in the browser unless you opt into reloading the data with shouldReloadData.
Sorting and filtering happen in the browser by default. A data function no longer makes filtering remote, and a controlled sortInfo no longer makes sorting remote. If your server sorts or filters - or you pass a controlled sortInfo / filterValue and sort or filter the data yourself - set shouldReloadData:
// before: implied by the data function / the controlled sortInfo<DataSource primaryKey="id" data={fetchRows} sortInfo={sortInfo} />;// now<DataSource primaryKey="id" data={fetchRows} sortInfo={sortInfo} shouldReloadData={{ sortInfo: true, filterValue: true }}/>
With lazyLoad, sorting, filtering, grouping and pivoting still default to the server. With livePagination, sorting and filtering now default to the server (an uncontrolled sort change used to do nothing) and grouping stays in the browser - this also applies to array data with livePagination. In development, a warning is shown the first time the sorting or filtering changes for a data function without shouldReloadData. See Sorting and filtering the data yourself.
A filterFunction (or treeFilterFunction) decides the filtering on its own. Before, the column filters (filterValue) were also applied after your function. Now your function gets the column filters in its param and does whatever filtering you want with them - to filter by them the same way as the built-in filtering, call the new defaultFilterFunction:
import { defaultFilterFunction } from '@infinite-table/infinite-react';// before<DataSource<Person> primaryKey="id" data={data} filterFunction={({ data }) => data.age > 30}/>;// now, to also apply the column filters<DataSource<Person> primaryKey="id" data={data} filterFunction={(param) => defaultFilterFunction(param) && param.data.age > 30}/>
In development, a warning is shown when a filter function is used with active column filters that it doesn't apply. The filterDataArray export follows the same rule, and no longer takes operatorsByFilterType.
The deprecated sortMode, filterMode and groupMode props are removed.
sortMode="local" / filterMode="local" - remove the prop; this is now the default.
sortMode="remote" - use shouldReloadData={{ sortInfo: true }}.
filterMode="remote" - use shouldReloadData={{ filterValue: true }}.
Because of a bug, sortMode="remote" and filterMode="remote" (without shouldReloadData) used to sort and filter in the browser. With shouldReloadData, the sorting and filtering are now really left to the server.
Column filters on tree data are applied to the leaf nodes. Without a treeFilterFunction, the column filters used to be matched against the top-level nodes only. Now the leaf nodes are matched, and a parent node is kept when at least one of its descendants is kept - the fields of parent nodes are not matched. This is the new defaultTreeFilterFunction.
A filterFunction has no effect with lazyLoad. The rows that are not loaded yet can't be filtered in the browser - with batching, using a filterFunction threw an error.
shouldReloadData.filterValue: true together with a filterFunction now reloads the data on every filter change and filters the returned rows in the browser - the reload was skipped before. Same as shouldReloadData.sortInfo: true with a sortFunction.
New exports: defaultFilterFunction and defaultTreeFilterFunction (also from @infinite-table/infinite-vue, which now exports multisort and multisortNested too).
The params of filterFunction and treeFilterFunction include filterValue and filterTypes; the params of treeFilterFunction include isLeafNode.
When the data function throws or returns a rejected promise, the grid no longer stays loading: the previous rows are kept and the error is logged. A failed batch with lazyLoad is requested again when its rows are rendered again, and a failed group can be collapsed and expanded to request its children again.
With local filtering, the filterValue in the data params no longer includes the valueGetter functions.
Fix the unfilteredCount of the DataSource state with lazyLoad: it took the totalCountUnfiltered of any response, so loading the rows of a group replaced it with the count of that group. It's now the count that the top-level response sends without the filter - totalChildrenCountUnfiltered with grouping, totalCountUnfiltered without - or the row count, when the server doesn't send one.
With lazyLoad and multi row selection, the group and header checkboxes now count the rows from the counts that the server sends, instead of estimating them:
With the counts without the filter (totalChildrenCountUnfiltered, totalCountUnfiltered) and multiRowSelectionTarget="all", a row or group that is selected or deselected on its own keeps its own selection, even when the filter hides it - deselecting a hidden row of a selected group leaves the group (and the header) partly selected.
Otherwise, once all the rows of a group are loaded, a selected row that the filter hides is no longer counted, so it can't make a checkbox look checked.
The top-level group response can include totalChildrenCount, the number of all leaf rows after the filter, which the header checkbox uses.
Fix the filteredCount of the DataSource state with lazyLoad and grouping: it was the number of top-level groups. It's now the number of leaf rows - the totalChildrenCount of the top-level group response or, when it's missing, the sum of the totalChildrenCount of the top-level groups, once they are all loaded.
With lazyLoad and multiRowSelectionTarget="all", the selection checkboxes can count the rows that the filter hides. The data function can return totalChildrenCountUnfiltered on group items and on the top-level group response, and totalCountUnfiltered for rows - a selected group with hidden rows that are not selected then shows as partly selected. See multi selection with lazy load.
Fix the header selection checkbox with lazyLoad, a filter and multiRowSelectionTarget="visible": it compared the selected rows with the count of rows without the filter, so selecting every row that passes the filter left it partly selected.
New multiRowSelectionTarget DataSource prop. When some rows are filtered out, it decides which rows the header selection checkbox, the group row (or parent node) checkboxes and the select all/deselect all API methods act on: all the rows ('all', the default) or only the rows that pass the filter ('visible'). With lazyLoad, the data function receives multiRowSelectionTarget in its params, so the server can apply it.
Behaviour changes with client-side filtering and multi row selection:
Fix the header selection checkbox on flat, filtered data. It used to compare the selected rows (including filtered out ones) with the count of visible rows, so it could show as checked or indeterminate in the wrong cases.
With the default 'all' target, group row and tree parent node checkboxes now count the rows that are filtered out. Selecting a filtered group already selected its hidden rows - the checkbox state now reflects that. To act only on the visible rows, use multiRowSelectionTarget="visible". This also applies to the selection callback from withSelectedLeafNodesOnly.
Fix resizing a flex column when the fixed columns already overflow the viewport. The resized column now gets a fixed width instead of a flex value in that case.
Fix a crash in the edit lifecycle callbacks (onEditPersistSuccess, onEditPersistError, onEditAccepted, onEditRejected, onEditCancelled) when the edit itself moves or removes the row — for example editing the value the grid is grouped by, so the row leaves a single-row group and the row count shrinks.
Pivot group columns bound to a field that is not a grouping key (including the pivot dimension) now show that value on nested group rows when every item in the group shares it.
Generated pivot columns inherit sortability from the user column they inherit from — including columns.defaultSortable and columnDefaultSortable. They are no longer unsortable.
Faster rendering: cell styling and CSS variable computation are now memoized and cell pooling skips redundant work, so column and viewport updates re-render less.
Sorting by a pivot column now works correctly — group rows are sorted by the aggregated value in the clicked pivot column, and group column sorting is inferred from groupBy.
Internal: the core has been made renderer-agnostic, paving the way for the upcoming Vue version of Infinite Table (published as a canary under @infinite-table/infinite-vue).
Improve perf for data updates by 35% in certain scenarios.
Previously, updating a row would re-render the whole visible viewport.
Starting with this version, only the updated row will re-render.
Improve scrolling performance generally, by a lot, by doing async updates.
For scrolling in a horizontal layout configuration, the scrolling flushes cells synchronously.
Fix listening to logs from the debug fn that Infinite exports, so we only listen to own logs. This avoids errors circular stringification errors of log messages.
Fix usage of React context, to be backwards compatible to React 18. This prevented the component from rendering in React 18 (affected version was 7.2.0).
Release GroupingToolbar - a new way to interact with your grouping.
Fix error that appeared when column pinning was used and no visible columns were available.
Fix edge case where repeatWrappedGroupRows didn't work in trees for collapsed non-leaf nodes. When a non-leaf node was collapsed, if it was the first node in a column set, it didn't repeat its parents correctly.
Version 6.2.9 fixes this.
Starting with this release, the CSS for each theme (other than the "default") is not included in the root CSS file (@infinite-table/infinite-react/index.css) and has to be imported explicitly:
This release, although a major one, does not introduce new major functionality, but rather improves on existing features and more specifically adds support for sorting group columns.
Improved group column sorting
Version 2.0.0 allows you to make group columns sortable, even when they are configured with groupBy fields that are not actually bound to columns.
<DataSource<Person> primaryKey="id" data={data} groupBy={[ // those fields are not bound to actual columns {field: 'team'}, {field: 'age' }, ]}> <InfiniteTable<Person> groupColumn={{ sortType: ['string', 'number'], // <--- allows you to have // the group column sortable }} columns={columns}/>
We've also introduced a few new props and renamed column.sortable to columns.defaultSortable.
Also, the behavior for the sortable prop has changed. The new columnDefaultSortable is now what sortable used to be, while the sortable prop overrides any sorting flags and is the ultimate source of truth for column sorting.