azure-devops-ui
Version:
React components for building web UI in Azure DevOps
12 lines (11 loc) • 463 B
TypeScript
export declare function elementContains(parent: HTMLElement, child: HTMLElement): boolean;
/**
* Gets the window or iframe container of the target element
* @param element
*/
export declare function getWindow(element: HTMLElement): Window | undefined;
/**
* Finds the nearest parent element of the target that is scrollable on the Y axis
* @param element
*/
export declare function findScrollableParent(element: HTMLElement): HTMLElement | null;