UNPKG

889 BTypeScriptView Raw
1// Type definitions for ag-grid v18.1.2
2// Project: http://www.ag-grid.com/
3// Definitions by: Niall Crosby <https://github.com/ag-grid/>
4export interface HorizontalResizeParams {
5 eResizeBar: HTMLElement;
6 onResizeStart: (shiftKey: boolean) => void;
7 onResizing: (delta: number) => void;
8 onResizeEnd: (delta: number) => void;
9}
10export declare class HorizontalResizeService {
11 private gridOptionsWrapper;
12 private dragService;
13 private eGridDiv;
14 private draggingStarted;
15 private dragStartX;
16 private resizeAmount;
17 private oldBodyCursor;
18 private oldMsUserSelect;
19 private oldWebkitUserSelect;
20 addResizeBar(params: HorizontalResizeParams): () => void;
21 private onDragStart(params, mouseEvent);
22 private setResizeIcons();
23 private onDragStop(params, mouseEvent);
24 private resetIcons();
25 private onDragging(params, mouseEvent);
26}