UNPKG

@umbraco-ui/uui-base

Version:

This is a base dependency for Umbraco UI components. It contains mixins, animations, abstract base classes, UUIEvent base class, and universal types for properties shared by different components

9 lines (8 loc) 526 B
/** * Recursively find an ancestor element by attribute name and value. This also checks children of the ancestor. * @func findAncestorByAttributeValue * @param {HTMLElement} startNode - Origin node of the search. * @param {string} attributeName - Name of the attribute to search for. * @param {string} attributeValue - Value of the attribute to search for. */ export declare const findAncestorByAttributeValue: (startNode: HTMLElement | ParentNode, attributeName: string, attributeValue: string) => HTMLElement | null;