A simple implementation of the intersectionObserverMixin
.
import { UiIntersectionObserver } from '@dreipol/vue-ui'
Name | Type | Default |
---|---|---|
thresholdMin |
number | 0.1 |
thresholdMax |
number | null |
intersect(isIntersecting: boolean, entry: IntersectionObserverEntry )
intersect-enter(entry: IntersectionObserverEntry )
intersect-leave(entry: IntersectionObserverEntry )
<ui-intersection-observer @intersect-enter="onIntersectEnter">
<div>
Loading
</div>
</ui-intersection-observer>