react-infinite-grid-scroller
Advanced tools
Changelog
1.3.0 August 21, 2023
This version adds flexible padding and gap configuration.
padding
has been moved from Cradle
grid blocks to the Scrollblock
.padding
property now accepts an array of integers as well as a standalone integer. Values match standard CSS order. Standalone integer = padding (in pixels) for all of top, right, bottom, left. 1-item array, same as integer. 2-item array = [t/b, r/l]. 3-item array = [t, r/l, b]. 4-item array = [t, r, b, l]gap
property now accepts an array of integers as well as a standalone integer. Values match standard CSS order. Standalone integer = gap (in pixels) for both of column-gap (horizontal) and row-gap (vertical). 1-item array, same as integer. 2-item array = [col, row]Changelog
1.2.0 August 18, 2023
This version introduces programmatic scrolling.
New API calls:
Internal updates:
Changelog
1.1.0 August 13, 2023
This version introduces bi-directional virtual list expansion (or contraction), by allowing negative indexes.
Breaking change:
changeListSizeCallback
API replaces changeListsizeCallback (note the camel case)Other changes:
startingListRange
optionally takes an array of two numbers [lowindex, highindex]
, being the lowindex
and highindex
of the virtual list. lowindex
must be <= highindex
, but both can be positive or negative integers. startingListRange
if present supercedes startingListSize
. If startingListRange
is given an empty array ([]
) it creates an empty virtual listsetListsize
API call is deprecated, replaced by setListSize
(note the camel case)Changelog
1.0.5 May 18, 2023
Internal refactors:
Changelog
1.0.4 April 22, 2023
Refactor index insert, remove, and move
A couple of corrections to list resize
Changelog
1.0.2 January 6, 2022
Integrated multiple suggestions from a linter, including one bug fix ("=" s/b "=="). Allow startingListSize of 0.
Changelog
1.0.1 January 5, 2022
Moved two pre-emptive function component error returns in InfiniteGridScroller to location after all hooks. Avoided third pre-emptive return by calling Scrollblock conditionally on listsize > 0.
Changelog
1.0.0-a January 2, 2022
No change, just updated the version number in the README file.
Changelog
1.0.0 January 2, 2022
No change, just upgraded the utility to production release status