@syncfusion/ej2-grids
Version:
Feature-rich JavaScript datagrid (datatable) control with built-in support for editing, filtering, grouping, paging, sorting, and exporting to Excel.
134 lines (133 loc) • 3.61 kB
TypeScript
import { IGrid, IAction } from '../base/interface';
export declare const resizeClassList: ResizeClasses;
export interface ResizeClasses {
root: string;
suppress: string;
icon: string;
helper: string;
header: string;
cursor: string;
}
/**
* `Resize` module is used to handle Resize to fit for columns.
*
* @hidden
* @private
*/
export declare class Resize implements IAction {
private pageX;
private column;
private element;
private helper;
private tapped;
private isDblClk;
private minMove;
private parentElementWidth;
isFrozenColResized: boolean;
/** @hidden */
resizeProcess: boolean;
private parent;
private widthService;
private isCancelAutoFit;
/**
* Constructor for the Grid resize module
*
* @param {IGrid} parent - specifies the IGrid
* @hidden
*/
constructor(parent?: IGrid);
/**
* Resize by field names.
*
* @param {string|string[]} fName - Defines the field name.
* @param {number} startRowIndex - Specifies the start row index.
* @param {number} endRowIndex - Specifies the end row index.
* @returns {void}
*/
autoFitColumns(fName?: string | string[], startRowIndex?: number, endRowIndex?: number): void;
private autoFit;
private getCellElementsByColumnIndex;
private resizeColumn;
/**
* To destroy the resize
*
* @returns {void}
* @hidden
*/
destroy(): void;
/**
* For internal use only - Get the module name.
*
* @returns {string} returns the module name
* @private
*/
protected getModuleName(): string;
private findColumn;
/**
* To create table for autofit
*
* @param {Element} table - specifies the table
* @param {Element[]} text - specifies the text
* @param {string} tag - specifies the tag name
* @param {number} startRowIndex - Specifies the start row index.
* @param {number} endRowIndex - Specifies the end row index.
* @returns {number} returns the number
* @hidden
*/
protected createTable(table: Element, text: Element[], tag: string, startRowIndex?: number, endRowIndex?: number): number;
/**
* @returns {void}
* @hidden
*/
addEventListener(): void;
/**
* @returns {void}
* @hidden
*/
removeEventListener(): void;
/**
* @returns {void}
* @hidden
*/
render(): void;
private refreshHeight;
private wireEvents;
private unwireEvents;
private getResizeHandlers;
private setHandlerHeight;
private callAutoFit;
private touchResizeStart;
private resizeStart;
private cancelResizeAction;
private getWidth;
private updateResizeEleHeight;
private getColData;
private refreshResizeFixedCols;
private calculateColspanWidth;
private refreshResizePosition;
private refreshResizefrzCols;
private refreshGroupCaptionRow;
private frzHdrRefresh;
private getParticularCol;
private resizing;
private distributeColWidth;
private calulateColumnsWidth;
private getSubColumns;
private resizeEnd;
private getPointX;
private refreshColumnWidth;
private refreshStackedColumnWidth;
private getStackedWidth;
private getTargetColumn;
private updateCursor;
private refresh;
private appendHelper;
private setHelperHeight;
private getScrollBarWidth;
private removeHelper;
private updateHelper;
private calcPos;
private doubleTapEvent;
private getUserAgent;
private timeoutHandler;
}