core/common/virtual-scroll/virtual-scroll-listener.directive.ts
Directive to listen for scroll events on a virtual scroll container.
Emits scrolled and scrolledToTop events.
The directive listens for scroll events on a virtual scroll container.
scrolled event is emitted.scrolledToTop event is emitted.
AfterViewInit
| Selector | [c8yVirtualScrollListener] |
| Standalone | true |
Methods |
Inputs |
Outputs |
| scrollThreshold |
Type : number
|
Default value : 50
|
|
Pixel threshold for emitting the scrolled event. |
| scrolled |
Type : EventEmitter
|
|
Event emitted when the virtual scroll container is scrolled by at least 50 pixels. |
| scrolledToTop |
Type : EventEmitter
|
|
Event emitted when the virtual scroll container is scrolled to the top. |
| ngAfterViewInit |
ngAfterViewInit()
|
|
Returns :
void
|