Constructors

Properties

callback?: ((module, element) => void | Promise<void>)

Type declaration

    • (module, element): void | Promise<void>
    • Function to execute after the module has been imported.

      Parameters

      • module: any

        The imported module

      • element: HTMLElement

        The element that triggered the module import

      Returns void | Promise<void>

dependsOn: LazyModule[] = []
lazy: boolean = true
loader: string | string[] | (() => Promise<unknown>) | (() => Promise<unknown>)[]

Type declaration

    • (): Promise<unknown>
    • Returns Promise<unknown>

observerOptions: IntersectionObserverInit = ...
on: "click" | "scroll" | "hover" = 'scroll'
trigger: NodeListOf<HTMLElement> = ...
when: "idle" | "immediate" | "interact" = 'interact'

Methods

  • Parameters

    • e: MouseEvent

    Returns Promise<void>

  • Parameters

    • domElements: IntersectionObserverEntry[]
    • observer: IntersectionObserver

    Returns void

  • Returns Promise<void>

Generated using TypeDoc