scroll.d.ts 506 B

12345678
  1. export declare const isScroll: (el: HTMLElement, isVertical?: boolean | undefined) => boolean;
  2. export declare const getScrollContainer: (el: HTMLElement, isVertical?: boolean | undefined) => Window | HTMLElement | undefined;
  3. export declare const getScrollBarWidth: (namespace: string) => number;
  4. /**
  5. * Scroll with in the container element, positioning the **selected** element at the top
  6. * of the container
  7. */
  8. export declare function scrollIntoView(container: HTMLElement, selected: HTMLElement): void;