1 |
|
2 |
|
3 |
|
4 | import { IComponent } from "../../interfaces/iComponent";
|
5 | import { RowNode } from "../../entities/rowNode";
|
6 | import { ColDef } from "../../entities/colDef";
|
7 | import { Column } from "../../entities/column";
|
8 | import { GridApi } from "../../gridApi";
|
9 | import { ColumnApi } from "../../columnController/columnApi";
|
10 | export interface ICellRendererParams {
|
11 | value: any;
|
12 | valueFormatted: any;
|
13 | getValue: () => any;
|
14 | setValue: (value: any) => void;
|
15 | formatValue: (value: any) => any;
|
16 | data: any;
|
17 | node: RowNode;
|
18 | colDef: ColDef;
|
19 | column: Column;
|
20 | $scope: any;
|
21 | rowIndex: number;
|
22 | api: GridApi;
|
23 | columnApi: ColumnApi;
|
24 | context: any;
|
25 | refreshCell: () => void;
|
26 | eGridCell: HTMLElement;
|
27 | eParentOfValue: HTMLElement;
|
28 | addRenderedRowListener: (eventType: string, listener: Function) => void;
|
29 | }
|
30 | export interface ICellRenderer {
|
31 | |
32 |
|
33 | refresh(params: any): boolean;
|
34 | }
|
35 | export interface ICellRendererComp extends ICellRenderer, IComponent<ICellRendererParams> {
|
36 | }
|
37 | export interface ICellRendererFunc {
|
38 | (params: any): HTMLElement | string;
|
39 | }
|