UNPKG

dtrum-react-kit

Version:

Dynatrace tools and react hooks collection

9 lines (8 loc) 413 B
/** The recursive solution to find the closest HTML-attribute from deep * * @param { Object } obj - DOM Node Element called to find the closest attribute value * @param { String } attrName - Attribute name to called, data-test-id by default * * @return { String | null } result - Attribute value or null * */ export declare const recursiveAttrSearch: (obj: HTMLElement, attrName?: string) => string | null;