Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

getOffset

  • getOffset(element: HTMLElement, container?: HTMLElement | string): { left: number; top: number }
  • Returns the offset of a given dom element relative to the document

    Parameters

    • element: HTMLElement

      The element to get the offset of

    • Optional container: HTMLElement | string

      An optional container that is used as target instead of the window

    Returns { left: number; top: number }

    • left: number
    • top: number

Generated using TypeDoc