ag-grid-community
Version:
Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue
53 lines (52 loc) • 1.92 kB
TypeScript
import { GridOptions } from "./entities/gridOptions";
import { GridApi } from "./gridApi";
import { Logger } from "./logger";
import { Context } from "./context/context";
import { IFrameworkOverrides } from "./interfaces/iFrameworkOverrides";
import { Module } from "./interfaces/iModule";
export interface GridParams {
globalEventListener?: Function;
globalSyncEventListener?: Function;
frameworkOverrides?: IFrameworkOverrides;
providedBeanInstances?: {
[key: string]: any;
};
/**
* Modules to be registered directly with this grid instance.
*/
modules?: Module[];
}
export interface Params {
/**
* Modules to be registered directly with this grid instance.
*/
modules?: Module[];
}
/**
* Creates a grid inside the provided HTML element.
* @param eGridDiv Parent element to contain the grid.
* @param gridOptions Configuration for the grid.
* @param params Individually register AG Grid Modules to this grid.
* @returns api to be used to interact with the grid.
*/
export declare function createGrid<TData>(eGridDiv: HTMLElement, gridOptions: GridOptions<TData>, params?: Params): GridApi<TData>;
/**
* @deprecated v31 use createGrid() instead
*/
export declare class Grid {
protected logger: Logger;
private readonly gridOptions;
constructor(eGridDiv: HTMLElement, gridOptions: GridOptions, params?: GridParams);
destroy(): void;
}
export declare class GridCoreCreator {
create(eGridDiv: HTMLElement, gridOptions: GridOptions, createUi: (context: Context) => void, acceptChanges?: (context: Context) => void, params?: GridParams): GridApi;
private registerControllers;
private registerStackComponents;
private getRegisteredModules;
private registerModuleUserComponents;
private createProvidedBeans;
private createAgStackComponentsList;
private createBeansList;
private extractModuleEntity;
}