react-infinite-grid-scroller
Advanced tools
Changelog
2.2.4 June 9, 2024
Changelog
2.2.3 June 9, 2024
Changelog
2.2.2 November 12, 2023
profile
propertyscrollerProfile
to DragDropTransferCallback
context
parameterChangelog
2.2.1 November 5, 2023
enhanced data return with nativeTypeCallback
. Now includes whitespaceposition
('head' or 'tail') and listrange
.
Changelog
2.2.0 November 4, 2023
dndOptions.nativeTypeCallback
property - a host provided function to return the result of native type drag and dropChangelog
2.1.0 November 3, 2023
New layout
property option
layout
property type 'static' which allows insertion of staticComponent
, and ignores all other properties, other than scroller dndOptions
staticComponent
property which allows insertion of a static component layer. Ignored unless layout
is set to static
These changes allow the RIGS root level to have an arbitrary layout. Specifically the inserted component allows for more than one top-level scroller, with drag and drop between them.
New scroller dndOptions
property
dndOptions.showScrollTabs
(default true
)DndScrollTabs can now be suppressed by setting the showScrollTabs
scroller dndOptions
property to false
Changelog
2.0.0 October 26, 2023
Added:
dndOptions
property, containing accept
list of content typesprofile
property to help with response to certain functionsgetDropEffect
function (for RigsDnd
higher order component only) which provides the host the opportunity to constrain the drop effect on scrollers, based on sourceScrollerID
, targetScrollerID
, and context
data.dragDropTransferCallback
function to notify host of completed drag and drop operationsgetItemPack
(replaces getItem
). The return object of getItemPack
from the host includes the host-defined component
function, and a data profile
object with host-defined properties; for dnd, it includes a cell dndOptions
object with dragText
and type
Renamed:
scrollerProperties
renamed to scrollerContext
scrollerContext
properties renamed from cellFramePropertiesRef
to cell
, and from scrollerPropertiesRef
to scroller
. Both follow the react ref
pattern, with data held in the current
propertyRemoved:
Changed:
context
object, which contains a contextType
name, a scrollerID
number, and sometimes more.Changelog
1.4.1 August 24, 2023
Fix regression re programmatic scrolling
Changelog
1.4.0 August 23, 2023
This version deals with virtual list boundaries - SOL (start-of-list) & EOL (end-of-list)
A new callback function is recognized:
boundaryCallback(position:string,index:number):void
provided by the host is called whenever a SOL or EOL index is loaded into the Cradle. position
= "SOL" | "EOL", index
being the start or end index.A new property has been added:
getExpansionCount(position, index):integer
is a function optionally provided by the host. If provided, it is called whenever a SOL or EOL index is loaded into the Cradle with position
= "SOL" | "EOL" and index
being the start or end index. The function is expected to return the number (>=0) of indexes to add to the virtual list at the noted start or end.