Releases: dhilt/ngx-ui-scroll
Releases · dhilt/ngx-ui-scroll
Direction Priority Dev Setting
Introduced new directionPriority
development setting, see jsdoc description in vscroll.
Memory leak when reload via ngIf
Default Size Strategy
2.0.0
Adapter bufferInfo
- New
Adapter.bufferInfo
property:
Name | Type | Description |
---|---|---|
bufferInfo | IBufferInfo { firstIndex: number; lastIndex: number; minIndex: number; maxIndex: number; absMinIndex: number; absMaxIndex: number; } |
- Internal indexes defaults are switched from null to NaN.
- Adapter methods return self-resolved Promise of
{ success: false}
if they are called before the Scroller initialization is done.
Adapter.replace
- New Adapter method "replace" allowing to perform many-to-many replacements over buffered items.
- Spec, demo and doc for Adapter.replace.
- Demo App routes config.
Adapter.remove increase fix
This release fixes startIndex consistency across running the Adapter.remove method with "increase" option.
Adapter.replace, one-to-one only
This release includes basic implementation of the in-viewport replacement feature.
Adapter.remove virtualization
- New signature for remove method:
Adapter.remove({ indexes, predicate, increase })
. - Items can be removed virtually.
- Workflow v7.2, relying on the initiator process.
- New specs, over 400 now.
Adapter.remove increase option
- Adapter.remove has new signature:
({ predicate, increase})
, the old one is also working:(predicate)
. - Option
increase
is implemented, it has its own spec, it is added to doc and demo. - Added protection against unsequenced removing.