File

core/common/virtual-scroll/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

Metadata

Index

Methods
Inputs
Outputs

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

results matching ""

    No results matching ""