paginate news

This commit is contained in:
HolgerHatGarKeineNode
2023-03-16 17:22:50 +01:00
parent ab451eb74b
commit 47e5d9ea58
2 changed files with 26 additions and 1 deletions

View File

@@ -173,6 +173,24 @@
@endif
@endforeach
<div
x-data="{
observe () {
let observer = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
@this.call('loadMore')
}
})
}, {
root: null
})
observer.observe(this.$el)
}
}"
x-init="observe"
></div>
</div>
</div>
</div>