Glide Data Grid 3.0.1
3.0.1 Release Notes
This is a minor release focused on fixing issues found in the 3.0.0 release.
π Bug Fixes
β Focus Ring no longer clips under the trailing row when it is sticky.
π Copy improvements
Certain strings would not get properly escaped when copying out of the DataEditor. This resulted in paste failures when pasting to Excel or Google Sheets.
π New Features / Improvements
β Multi-paste Support
New API!
onPaste?: ((target: readonly [number, number], values: readonly (readonly string[])[]) => boolean) | boolean;onPaste is called when data is pasted into the grid. If left undefined, the DataEditor will operate in a fallback mode and attempt to paste the text buffer into the current cell assuming the current cell is not readonly and can accept the data type. If onPaste is set to false or the function returns false, the grid will simply ignore paste. If onPaste evaluates to true the grid will attempt to split the data by tabs and newlines and paste into available cells.
The grid will not attempt to add additional rows if more data is pasted then can fit. In that case it is advisable to simply return false from onPaste and handle the paste manually.
β DataEditor.rowSelectionMode
The DataEditor can now optionally act as if the Ctrl/Command key is depressed at all times when selecting rows. This can lead to a more intuitive experience for novice users. The two new modes are auto and multi. In auto mode selection acts as it does today, with single click clearing selection unless the Ctrl/Command key is pressed or touch events are used.
π€‘ Clowncar Scrolling
Data Grid now supports truly ridiculous numbers of rows, well north of 100 Million if your data source can handle it. This mandates a special scrolling mode which kicks in once the browsers scrolling precision is exhausted.
π€ CompactSelection.offset
CompactSelections now have an offset API for shifting the CompactSelection by a fixed amount.
β‘ Faster animations
Default animation time has been shortened to 80ms from 120ms to improve the responsive feeling of the Data Grid.
