Reference home > @af-utils/virtual-core > VirtualScrollerRuntimeParams > itemCount

VirtualScrollerRuntimeParams.itemCount property

Total items quantity

Signature:

itemCount?: number;

Remarks

Maximum suported value is 2_147_483_647 (int32 max). This limit exists, because item sizes cache implementation has bitwise operations, which work only with int32. But there is one more limit. W3C does not provide maximum allowed values for height, width, margin, etc.

CSS theoretically supports infinite precision and infinite ranges for all value types; however in reality implementations have finite capacity. UAs should support reasonably useful ranges and precisions

This quote was found here. Chrome’s experimentally found maximum value is 33_554_428. So some problems may happen if VirtualScroller.scrollSize is bigger.