@fancyapps/ui
Version:
Robust JavaScript UI Component Library
9 lines (8 loc) • 316 B
TypeScript
/**
* Checks whether an element has scrollable content
*/
export declare const isScrollable: (ele: HTMLElement | null) => boolean;
/**
* Find the closest parent element with scrollable content
*/
export declare const getScrollableParent: (el: HTMLElement, limit?: HTMLElement | undefined) => null | HTMLElement;