Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "frontend-packages/headless-content-unblocker/src/visual/findVisualParent"

Index

Variables

Const CHILDREN_SELECTOR_PREFIX

CHILDREN_SELECTOR_PREFIX: "children:" = "children:"

Functions

findVisualParent

  • findVisualParent(node: HTMLElement, setVisualParentIfClassOfParent?: Record<string, number | string | boolean>): [HTMLElement, "none" | "parent" | "parentZ" | "parentSelector" | "childrenSelector"]
  • Find element where the visual content blocker should be placed relative to the blocked element.

    Parameters

    • node: HTMLElement
    • Default value setVisualParentIfClassOfParent: Record<string, number | string | boolean> = {}

    Returns [HTMLElement, "none" | "parent" | "parentZ" | "parentSelector" | "childrenSelector"]

Generated using TypeDoc