Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions types/react-virtualized/dist/es/Grid.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ export type ScrollParams = {
scrollTop: number;
scrollWidth: number;
};
export type ScrollbarPresenceParams = {
horizontal: boolean;
size: number;
vertical: boolean;
};
export type SectionRenderedParams = RenderedSection;
export type SCROLL_DIRECTION_HORIZONTAL = "horizontal";
export type SCROLL_DIRECTION_VERTICAL = "vertical";
Expand Down Expand Up @@ -237,6 +242,11 @@ export type GridCoreProps = {
* ({ clientHeight, clientWidth, scrollHeight, scrollLeft, scrollTop, scrollWidth }): void
*/
onScroll?: (params: ScrollParams) => any;
/**
* Called whenever a horizontal or vertical scrollbar is added or removed.
* ({ horizontal: boolean, size: number, vertical: boolean }): void
*/
onScrollbarPresenceChange?: (params: ScrollbarPresenceParams) => any;
/**
* Callback invoked with information about the section of the Grid that was just rendered.
* ({ columnStartIndex, columnStopIndex, rowStartIndex, rowStopIndex }): void
Expand Down