@nova-ui/bits
Version:
SolarWinds Nova Framework
21 lines (20 loc) • 622 B
TypeScript
import * as i0 from "@angular/core";
/**
* Service providing DOM utilities
*/
/**
* @ignore
*/
export declare class DomUtilService {
private document;
constructor(document: any);
/**
* Gets the closest parent element matching the specified selector
* @param elem the source element
* @param selector the selector to match
* @returns the matching element
*/
getClosest: (elem: HTMLElement | undefined, selector: string) => HTMLElement | null;
static ɵfac: i0.ɵɵFactoryDeclaration<DomUtilService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<DomUtilService>;
}