Skip to content

Conversation

@EverettSummer
Copy link
Member

Add loading contents of collection by bucket for InfiniteForOf directive. this enable pagination loading of the infinite list.

when using this feature, provide a InfiniteDataBucketsStub instance to the InfiniteForOf directive using withBucekt.

<infinite-list [rowHeight]="140" [newScrollPosition]="newPosition" (scrollPosition)="onScrollPositionChange($event)">
    <list-item-example *infiniteFor="let row of collection; let isInit = isInitialized; let i = index; withBucket: bucketsStub"
                       [item]="row"
                       [index]="i"
                       [isInit]="isInit">

    </list-item-example>
</infinite-list>

a new context variable isIntialized is added to the tempate context. for the template to check if the bucket is filled with data.

@EverettSummer EverettSummer added the Ready To Test To trigger UT for PR label Jan 12, 2025
@EverettSummer EverettSummer merged commit ad49d53 into master Jan 12, 2025
1 check passed
@EverettSummer EverettSummer deleted the infinite-list-bucket-load branch January 12, 2025 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Ready To Test To trigger UT for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants