[react-virtualized] Grid - add onScrollbarPresenceChange to GridCoreProps (#25040)

* Grid - add onScrollbarPresenceChange to GridCoreProps

* Fix irregular whitespace
This commit is contained in:
Jakub Řičař
2018-04-17 08:35:05 -07:00
committed by Ryan Cavanaugh
parent f8b7232c91
commit 1f555b0b4f
+10
View File
@@ -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";
@@ -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