Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HeightAdapter

Service class to send height information of the plug-in to COYO.

Hierarchy

  • HeightAdapter

Index

Constructors

Properties

Methods

Constructors

constructor

  • Creates a new instance of this class.

    Parameters

    • srcId: string

      the plug-in source ID to use for requests

    Returns HeightAdapter

    the new instance

Properties

Protected observer

observer: ResizeObserver | null = null

Methods

connect

  • connect(selectors: string, throttle: number): void
  • Connects this adapter to the HTML element that matches the given selectors, observes its height and sends throttled update messages to COYO.

    Parameters

    • selectors: string

      the selectors to target the HTML element

    • throttle: number

      a small timeframe to throttle messages

    Returns void

disconnect

  • disconnect(): void
  • Disconnects this adapter from all HTML elements.

    Returns void

Generated using TypeDoc