@progress/kendo-react-dateinputs
Version:
KendoReact Date Inputs package
50 lines (49 loc) • 1.27 kB
TypeScript
import { RowHeightService } from './RowHeightService';
/**
* @hidden
*/
export declare class ScrollAction {
offset: number;
constructor(offset: number);
}
/**
* @hidden
*/
export declare class PageAction {
skip: number;
constructor(skip: number);
}
/**
* @hidden
*/
export declare type ScrollElement = {
offsetHeight: number;
offsetWidth: number;
scrollLeft: number;
scrollTop: number;
};
/**
* @hidden
*/
export declare type Action = ScrollAction | PageAction;
/**
* @hidden
*/
export declare class ScrollerService {
private onScrollAction;
private onPageAction;
private direction;
private firstLoaded;
private lastLoaded;
private lastScrollTop;
private take;
private total;
private rowHeightService;
private bottomOffset;
private topOffset;
constructor(onScrollAction: (action: ScrollAction) => void, onPageAction: (action: PageAction) => void);
create(rowHeightService: RowHeightService, skip: number, take: number, total: number, topOffset?: number, bottomOffset?: number, direction?: 'horizontal' | 'vertical'): void;
onScroll({ scrollLeft, scrollTop, offsetHeight, offsetWidth }: ScrollElement): void;
rowOffset(index: number): number;
private rowsForHeight;
}