Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "components/abstract-modal"

Index

Functions

Const findHideableNodes

  • findHideableNodes(element: Element, exclusions: Node[], target?: Node[]): Node[]
  • Find Nodes that could be hidden without breaking the modal

    Parameters

    • element: Element

      the element to inspect the children of

    • exclusions: Node[]

      elements that can not be hidden, such as the parents of the modal

    • Default value target: Node[] = []

      the array to push the nodes into

    Returns Node[]

Const walkParents

  • walkParents(element: Node, target?: Node[]): Node[]
  • Parameters

    • element: Node
    • Default value target: Node[] = []

    Returns Node[]