Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "parentByInstance"

Index

Functions

Functions

parentByInstance

  • parentByInstance<T>(child: Element, instance: any, maxLevel?: number, currentLevel?: number): T | false
  • Get the nearest parent element by instance.

    Type parameters

    • T: Element

    Parameters

    • child: Element
    • instance: any
    • Default value maxLevel: number = Infinity
    • Default value currentLevel: number = 0

    Returns T | false

Generated using TypeDoc