ancestorLevel
ancestorLevel: number | undefined
Specifies how far "up" we should walk to find the target element. When not specified or 0
,
the target element matches the request element. When 1
, the target element matches the direct parent element.
When 2
, the target element is parent of the parent element and so on. In all situations when this is > 0
,
we're not walking further than the last existing element, for example when ancestorLevel = 1
(direct parent
element is requested), but the request element doesn't have a parent, the request element is returned as the result.
Defined in
Last Updated: 21 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.