widgets/implementations/datapoints-table/datapoints-table-view/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
OnDestroy
Selector | [c8yVirtualScrollListener] |
Standalone | true |
Methods |
Inputs |
Outputs |
constructor(el: ElementRef, ngZone: NgZone)
|
|||||||||
Parameters :
|
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
|
ngOnDestroy |
ngOnDestroy()
|
Returns :
void
|