UNPKG

ag-grid-community

Version:

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

15 lines (14 loc) 845 B
import type { ColumnCollections } from '../columns/columnModel'; import type { AgColumn } from '../entities/agColumn'; import type { ColKey } from '../entities/colDef'; import type { GridOptions } from '../entities/gridOptions'; import type { ColumnEventType } from '../events'; import type { PropertyChangedEvent, PropertyValueChangedEvent } from '../gridOptionsService'; export interface IColumnCollectionService { columns: ColumnCollections | null; addColumns(cols: ColumnCollections): void; createColumns(cols: ColumnCollections, updateOrders: (callback: (cols: AgColumn[] | null) => AgColumn[] | null) => void, source: ColumnEventType): void; updateColumns(event: PropertyChangedEvent | PropertyValueChangedEvent<keyof GridOptions>): void; getColumn(key: ColKey): AgColumn | null; getColumns(): AgColumn[] | null; }