ag-grid-community
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
29 lines (28 loc) • 1.33 kB
TypeScript
import type { ElementParams } from '../utils/element';
import { Component } from '../widgets/component';
import type { ScrollPartner } from './gridBodyScrollFeature';
/**
* Size given to a fake scrollbar when the platform reports a zero-width scrollbar (overlay
* scrollbars, e.g. macOS): the fake scrollbar is always drawn, so it still occupies space.
*/
export declare const INVISIBLE_SCROLLBAR_SIZE = 16;
export declare abstract class AbstractFakeScrollComp extends Component implements ScrollPartner {
private readonly direction;
readonly eViewport: HTMLElement;
protected readonly eContainer: HTMLElement;
protected invisibleScrollbar: boolean | undefined;
protected hideTimeout: number;
private invisibleScrollbarListenersAdded;
protected abstract setScrollVisible(): void;
abstract getScrollPosition(): number;
abstract setScrollPosition(value: number): void;
private readonly queueSetScrollVisible;
constructor(template: ElementParams, direction: 'horizontal' | 'vertical');
postConstruct(): void;
destroy(): void;
protected refreshInvisibleScrollbar(): void;
protected addActiveListenerToggles(): void;
protected onScrollVisibilityChanged(): void;
protected hideAndShowInvisibleScrollAsNeeded(): void;
onScrollCallback(fn: () => void): void;
}