Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SfScrollDetectionService

API reference for SfScrollDetectionService

import {SfCommonModule} from "@progress/sitefinity-component-framework";


description: Sets the scrollY value as a data-scroll attribute of the html element

Hierarchy

  • SfScrollDetectionService

Index

Constructors

constructor

  • Parameters

    • window: Window
    • rendererFactory: RendererFactory2

    Returns SfScrollDetectionService

Properties

isScrolling

isScrolling: boolean

Whether it is scrolling

Private renderer

renderer: Renderer2

Angular Renderer2

Private rendererFactory

rendererFactory: RendererFactory2

Private window

window: Window

Methods

debounce

  • debounce(fn: function): (Anonymous function)
  • Parameters

    • fn: function
        • (): any
        • Returns any

    Returns (Anonymous function)

storeScroll

  • storeScroll(): void
  • Returns void

Generated using TypeDoc