File

widgets/implementations/datapoints-table/datapoints-table-view/virtual-scroll-listener.directive.ts

Description

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.

  • When the container is scrolled by at least 50 pixels (or a custom threshold), the scrolled event is emitted.
  • When the container is scrolled to the top, the scrolledToTop event is emitted.

Implements

AfterViewInit OnDestroy

Metadata

Index

Methods
Inputs
Outputs

Constructor

constructor(el: ElementRef, ngZone: NgZone)
Parameters :
Name Type Optional
el ElementRef No
ngZone NgZone No

Inputs

scrollThreshold
Type : number
Default value : 50

Pixel threshold for emitting the scrolled event.

Outputs

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.

Methods

ngAfterViewInit
ngAfterViewInit()
Returns : void
ngOnDestroy
ngOnDestroy()
Returns : void

results matching ""

    No results matching ""