Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add bucket load support for infinite-for-of directive. #11

Merged
merged 1 commit into from
Jan 12, 2025

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.

1 participant