UNPKG

ag-grid-community

Version:

Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue

31 lines (30 loc) 1.19 kB
import type { IAggFunc } from '../entities/colDef'; import type { Column } from './iColumn'; import type { IRowNode } from './iRowNode'; export interface DragItem<TValue = any> { /** * When dragging a row, this contains the row node being dragged * When dragging multiple rows, this contains the row that started the drag. */ rowNode?: IRowNode; /** When dragging multiple rows, this contains all rows being dragged */ rowNodes?: IRowNode[]; /** When dragging columns, this contains the columns being dragged */ columns?: Column[]; /** When dragging column groups, this contains the columns in the current group split. */ columnsInSplit?: Column[]; /** When dragging columns, this contains the visible state of the columns */ visibleState?: { [key: string]: boolean; }; /** When dragging columns, this contains the pivot state of the columns. This is only populated/used in column tool panel */ pivotState?: { [key: string]: { pivot?: boolean; rowGroup?: boolean; aggFunc?: string | IAggFunc | null; }; }; /** Additional state */ value?: TValue; }