UNPKG

3.17 kBTypeScriptView Raw
1import type { GridApi, GridOptions, ICellEditor, ICellRenderer, IDate, IFilter, IFloatingFilter, IHeader, IHeaderGroup, ILoadingOverlay, INoRowsOverlay, IStatusPanel, IToolPanel, Module } from 'ag-grid-community';
2export interface SharedProps<TData = any> extends GridOptions<TData> {
3 gridOptions?: GridOptions<TData>;
4 /**
5 * Used to register AG Grid Modules directly with this instance of the grid.
6 * See [Providing Modules To Individual Grids](https://www.ag-grid.com/react-data-grid/modules/#providing-modules-to-individual-grids) for more information.
7 */
8 modules?: Module[];
9 containerStyle?: any;
10 className?: string;
11 setGridApi?: (gridApi: GridApi<TData>) => void;
12 componentWrappingElement?: string;
13 maxComponentCreationTimeMs?: number;
14 children?: any;
15}
16/** @deprecated v31.1 Use `AgGridReactProps` instead. */
17export interface AgReactUiProps<TData = any> extends SharedProps<TData> {
18}
19export interface AgGridReactProps<TData = any> extends SharedProps<TData> {
20 /** @deprecated v31.1 No longer used. */
21 disableStaticMarkup?: boolean;
22 /** @deprecated v31.1 No longer used. */
23 legacyComponentRendering?: boolean;
24}
25export interface AgReactComponent {
26 /** @deprecated v31.1 Apply styling directly to `.ag-react-container` if needed */
27 getReactContainerStyle?: () => object;
28 /** @deprecated v31.1 Apply styling directly to `.ag-react-container` if needed */
29 getReactContainerClasses?: () => string[];
30}
31/** @deprecated v31.1 Use `IHeaderGroup` instead. */
32export interface IHeaderGroupReactComp extends IHeaderGroup, AgReactComponent {
33}
34/** @deprecated v31.1 Use `IHeader` instead. */
35export interface IHeaderReactComp extends IHeader, AgReactComponent {
36}
37/** @deprecated v31.1 Use `IDate` instead. */
38export interface IDateReactComp extends IDate, AgReactComponent {
39}
40/** @deprecated v31.1 Use `IFilter` instead. */
41export interface IFilterReactComp extends IFilter, AgReactComponent {
42}
43/** @deprecated v31.1 Use `IFloatingFilter` instead. */
44export interface IFloatingFilterReactComp extends IFloatingFilter, AgReactComponent {
45}
46/** @deprecated v31.1 Use `ICellRenderer` instead. */
47export interface ICellRendererReactComp extends ICellRenderer, AgReactComponent {
48}
49/** @deprecated v31.1 Use `ICellEditor` instead. */
50export interface ICellEditorReactComp extends ICellEditor, AgReactComponent {
51}
52/** @deprecated v31.1 No interface required. */
53export interface ILoadingCellRendererReactComp extends AgReactComponent {
54}
55/** @deprecated v31.1 Use `ILoadingOverlay` instead. */
56export interface ILoadingOverlayReactComp extends ILoadingOverlay, AgReactComponent {
57}
58/** @deprecated v31.1 Use `INoRowsOverlay` instead. */
59export interface INoRowsOverlayReactComp extends INoRowsOverlay, AgReactComponent {
60}
61/** @deprecated v31.1 Use `IStatusPanel` instead. */
62export interface IStatusPanelReactComp extends IStatusPanel, AgReactComponent {
63}
64/** @deprecated v31.1 Use `IToolPanel` instead. */
65export interface IToolPanelReactComp extends IToolPanel, AgReactComponent {
66}
67/** @deprecated v31.1 No interface required. */
68export interface ITooltipReactComp extends AgReactComponent {
69}